ListGroupsOutput.fromJson constructor

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

Implementation

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