DescribeCasesResponse.fromJson constructor

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

Implementation

factory DescribeCasesResponse.fromJson(Map<String, dynamic> json) {
  return DescribeCasesResponse(
    cases: (json['cases'] as List?)
        ?.whereNotNull()
        .map((e) => CaseDetails.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['nextToken'] as String?,
  );
}