TemplatesResponse.fromJson constructor

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

Implementation

factory TemplatesResponse.fromJson(Map<String, dynamic> json) {
  return TemplatesResponse(
    item: (json['Item'] as List)
        .whereNotNull()
        .map((e) => TemplateResponse.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}