ListCustomVerificationEmailTemplatesResponse.fromJson constructor

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

Implementation

factory ListCustomVerificationEmailTemplatesResponse.fromJson(
    Map<String, dynamic> json) {
  return ListCustomVerificationEmailTemplatesResponse(
    customVerificationEmailTemplates:
        (json['CustomVerificationEmailTemplates'] as List?)
            ?.whereNotNull()
            .map((e) => CustomVerificationEmailTemplateMetadata.fromJson(
                e as Map<String, dynamic>))
            .toList(),
    nextToken: json['NextToken'] as String?,
  );
}