ListDistributedGrantsResponse.fromJson constructor

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

Implementation

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