ListTemplatesResponse.fromJson constructor

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

Implementation

factory ListTemplatesResponse.fromJson(Map<String, dynamic> json) {
  return ListTemplatesResponse(
    nextToken: json['NextToken'] as String?,
    requestId: json['RequestId'] as String?,
    templateSummaryList: (json['TemplateSummaryList'] as List?)
        ?.whereNotNull()
        .map((e) => TemplateSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}