toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final emailTemplate = this.emailTemplate;
  final pushTemplate = this.pushTemplate;
  final sMSTemplate = this.sMSTemplate;
  final voiceTemplate = this.voiceTemplate;
  return {
    if (emailTemplate != null) 'EmailTemplate': emailTemplate,
    if (pushTemplate != null) 'PushTemplate': pushTemplate,
    if (sMSTemplate != null) 'SMSTemplate': sMSTemplate,
    if (voiceTemplate != null) 'VoiceTemplate': voiceTemplate,
  };
}