toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final aDMMessage = this.aDMMessage;
  final aPNSMessage = this.aPNSMessage;
  final baiduMessage = this.baiduMessage;
  final defaultMessage = this.defaultMessage;
  final defaultPushNotificationMessage = this.defaultPushNotificationMessage;
  final emailMessage = this.emailMessage;
  final gCMMessage = this.gCMMessage;
  final sMSMessage = this.sMSMessage;
  final voiceMessage = this.voiceMessage;
  return {
    if (aDMMessage != null) 'ADMMessage': aDMMessage,
    if (aPNSMessage != null) 'APNSMessage': aPNSMessage,
    if (baiduMessage != null) 'BaiduMessage': baiduMessage,
    if (defaultMessage != null) 'DefaultMessage': defaultMessage,
    if (defaultPushNotificationMessage != null)
      'DefaultPushNotificationMessage': defaultPushNotificationMessage,
    if (emailMessage != null) 'EmailMessage': emailMessage,
    if (gCMMessage != null) 'GCMMessage': gCMMessage,
    if (sMSMessage != null) 'SMSMessage': sMSMessage,
    if (voiceMessage != null) 'VoiceMessage': voiceMessage,
  };
}