TemplateVersionsResponse.fromJson constructor

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

Implementation

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