ListGroupsResponse.fromJson constructor

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

Implementation

factory ListGroupsResponse.fromJson(Map<String, dynamic> json) {
  return ListGroupsResponse(
    groups: (json['Groups'] as List?)
        ?.whereNotNull()
        .map((e) => GroupType.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}