ListReceivedGrantsResponse.fromJson constructor

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

Implementation

factory ListReceivedGrantsResponse.fromJson(Map<String, dynamic> json) {
  return ListReceivedGrantsResponse(
    grants: (json['Grants'] as List?)
        ?.whereNotNull()
        .map((e) => Grant.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}