PlayerSession.fromJson constructor
PlayerSession.fromJson(
- Map<String, dynamic> json
)
Implementation
factory PlayerSession.fromJson(Map<String, dynamic> json) {
return PlayerSession(
creationTime: timeStampFromJson(json['CreationTime']),
dnsName: json['DnsName'] as String?,
fleetArn: json['FleetArn'] as String?,
fleetId: json['FleetId'] as String?,
gameSessionId: json['GameSessionId'] as String?,
ipAddress: json['IpAddress'] as String?,
playerData: json['PlayerData'] as String?,
playerId: json['PlayerId'] as String?,
playerSessionId: json['PlayerSessionId'] as String?,
port: json['Port'] as int?,
status: (json['Status'] as String?)?.toPlayerSessionStatus(),
terminationTime: timeStampFromJson(json['TerminationTime']),
);
}