GameServer.fromJson constructor

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

Implementation

factory GameServer.fromJson(Map<String, dynamic> json) {
  return GameServer(
    claimStatus: (json['ClaimStatus'] as String?)?.toGameServerClaimStatus(),
    connectionInfo: json['ConnectionInfo'] as String?,
    gameServerData: json['GameServerData'] as String?,
    gameServerGroupArn: json['GameServerGroupArn'] as String?,
    gameServerGroupName: json['GameServerGroupName'] as String?,
    gameServerId: json['GameServerId'] as String?,
    instanceId: json['InstanceId'] as String?,
    lastClaimTime: timeStampFromJson(json['LastClaimTime']),
    lastHealthCheckTime: timeStampFromJson(json['LastHealthCheckTime']),
    registrationTime: timeStampFromJson(json['RegistrationTime']),
    utilizationStatus: (json['UtilizationStatus'] as String?)
        ?.toGameServerUtilizationStatus(),
  );
}