SMSTemplateResponse.fromJson constructor

SMSTemplateResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory SMSTemplateResponse.fromJson(Map<String, dynamic> json) {
  return SMSTemplateResponse(
    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?,
    recommenderId: json['RecommenderId'] 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)),
  );
}