EmailTemplateResponse.fromJson constructor
EmailTemplateResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory EmailTemplateResponse.fromJson(Map<String, dynamic> json) {
return EmailTemplateResponse(
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?,
defaultSubstitutions: json['DefaultSubstitutions'] as String?,
htmlPart: json['HtmlPart'] as String?,
recommenderId: json['RecommenderId'] as String?,
subject: json['Subject'] as String?,
templateDescription: json['TemplateDescription'] as String?,
textPart: json['TextPart'] as String?,
version: json['Version'] as String?,
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
);
}