ListEmailTemplatesResponse.fromJson constructor

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

Implementation

factory ListEmailTemplatesResponse.fromJson(Map<String, dynamic> json) {
  return ListEmailTemplatesResponse(
    nextToken: json['NextToken'] as String?,
    templatesMetadata: (json['TemplatesMetadata'] as List?)
        ?.whereNotNull()
        .map((e) => EmailTemplateMetadata.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}