toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final body = this.body;
  final defaultSubstitutions = this.defaultSubstitutions;
  final languageCode = this.languageCode;
  final templateDescription = this.templateDescription;
  final voiceId = this.voiceId;
  final tags = this.tags;
  return {
    if (body != null) 'Body': body,
    if (defaultSubstitutions != null)
      'DefaultSubstitutions': defaultSubstitutions,
    if (languageCode != null) 'LanguageCode': languageCode,
    if (templateDescription != null)
      'TemplateDescription': templateDescription,
    if (voiceId != null) 'VoiceId': voiceId,
    if (tags != null) 'tags': tags,
  };
}