toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final emailMessage = this.emailMessage;
  final sendEmail = this.sendEmail;
  return {
    if (emailMessage != null) 'EmailMessage': emailMessage,
    if (sendEmail != null) 'SendEmail': sendEmail,
  };
}