ListGameServersOutput.fromJson constructor

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

Implementation

factory ListGameServersOutput.fromJson(Map<String, dynamic> json) {
  return ListGameServersOutput(
    gameServers: (json['GameServers'] as List?)
        ?.whereNotNull()
        .map((e) => GameServer.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}