レスポンスを に変換したいNSDictionary
。レスポンスはALRegistrationResponse
( https://github.com/AppLozic/Applozic-Chat-iOS-Framework/blob/master/Applozic/DomainClasses/ALRegistrationResponse.m ) の実装です。
NSDictionary *_response = @
{
@"message":[response message] != nil ? [response message] : [NSNull null],
@"deviceKey":[response deviceKey] != nil ? [response deviceKey] : [NSNull null],
@"userKey":[response userKey] != nil ? [response userKey] : [NSNull null],
@"contactNumber":[response contactNumber] != nil ? [response contactNumber] : [NSNull null],
@"lastSyncTime":[response lastSyncTime] != nil ? [response lastSyncTime] : [NSNull null],
@"currentTimeStamp":[response currentTimeStamp] != nil ? [response currentTimeStamp] : [NSNull null],
@"brokerURL":[response brokerURL] != nil ? [response brokerURL] : [NSNull null],
@"imageLink":[response imageLink] != nil ? [response imageLink] : [NSNull null],
@"statusMessage":[response statusMessage] != nil ? [response statusMessage] : [NSNull null],
@"encryptionKey":[response encryptionKey] != nil ? [response encryptionKey] : [NSNull null],
@"displayName":[response displayName] != nil ? [response displayName] : [NSNull null],
@"notificationSoundFileName":[response notificationSoundFileName] != nil ? [response notificationSoundFileName] : [NSNull null]
};