VoiceTemplateResponse.fromJson constructor
VoiceTemplateResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory VoiceTemplateResponse.fromJson(Map<String, dynamic> json) {
return VoiceTemplateResponse(
creationDate: json['CreationDate'] as String,
lastModifiedDate: json['LastModifiedDate'] as String,
templateName: json['TemplateName'] as String,
templateType: (json['TemplateType'] as String).toTemplateType(),
arn: json['Arn'] as String?,
body: json['Body'] as String?,
defaultSubstitutions: json['DefaultSubstitutions'] as String?,
languageCode: json['LanguageCode'] as String?,
templateDescription: json['TemplateDescription'] as String?,
version: json['Version'] as String?,
voiceId: json['VoiceId'] as String?,
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
);
}