MessageConfiguration.fromJson constructor
MessageConfiguration.fromJson(
- Map<String, dynamic> json
)
Implementation
factory MessageConfiguration.fromJson(Map<String, dynamic> json) {
return MessageConfiguration(
aDMMessage: json['ADMMessage'] != null
? Message.fromJson(json['ADMMessage'] as Map<String, dynamic>)
: null,
aPNSMessage: json['APNSMessage'] != null
? Message.fromJson(json['APNSMessage'] as Map<String, dynamic>)
: null,
baiduMessage: json['BaiduMessage'] != null
? Message.fromJson(json['BaiduMessage'] as Map<String, dynamic>)
: null,
customMessage: json['CustomMessage'] != null
? CampaignCustomMessage.fromJson(
json['CustomMessage'] as Map<String, dynamic>)
: null,
defaultMessage: json['DefaultMessage'] != null
? Message.fromJson(json['DefaultMessage'] as Map<String, dynamic>)
: null,
emailMessage: json['EmailMessage'] != null
? CampaignEmailMessage.fromJson(
json['EmailMessage'] as Map<String, dynamic>)
: null,
gCMMessage: json['GCMMessage'] != null
? Message.fromJson(json['GCMMessage'] as Map<String, dynamic>)
: null,
sMSMessage: json['SMSMessage'] != null
? CampaignSmsMessage.fromJson(
json['SMSMessage'] as Map<String, dynamic>)
: null,
);
}