toJson method
Implementation
Map<String, dynamic> toJson() {
final body = this.body;
final languageCode = this.languageCode;
final originationNumber = this.originationNumber;
final substitutions = this.substitutions;
final voiceId = this.voiceId;
return {
if (body != null) 'Body': body,
if (languageCode != null) 'LanguageCode': languageCode,
if (originationNumber != null) 'OriginationNumber': originationNumber,
if (substitutions != null) 'Substitutions': substitutions,
if (voiceId != null) 'VoiceId': voiceId,
};
}