TemplateResponse.fromJson constructor
TemplateResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory TemplateResponse.fromJson(Map<String, dynamic> json) {
return TemplateResponse(
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?,
templateDescription: json['TemplateDescription'] as String?,
version: json['Version'] as String?,
tags: (json['tags'] as Map<String, dynamic>?)
?.map((k, e) => MapEntry(k, e as String)),
);
}