ListGameServerGroupsOutput.fromJson constructor

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

Implementation

factory ListGameServerGroupsOutput.fromJson(Map<String, dynamic> json) {
  return ListGameServerGroupsOutput(
    gameServerGroups: (json['GameServerGroups'] as List?)
        ?.whereNotNull()
        .map((e) => GameServerGroup.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}