GameSessionQueue.fromJson constructor
GameSessionQueue.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GameSessionQueue.fromJson(Map<String, dynamic> json) {
return GameSessionQueue(
destinations: (json['Destinations'] as List?)
?.whereNotNull()
.map((e) =>
GameSessionQueueDestination.fromJson(e as Map<String, dynamic>))
.toList(),
gameSessionQueueArn: json['GameSessionQueueArn'] as String?,
name: json['Name'] as String?,
playerLatencyPolicies: (json['PlayerLatencyPolicies'] as List?)
?.whereNotNull()
.map((e) => PlayerLatencyPolicy.fromJson(e as Map<String, dynamic>))
.toList(),
timeoutInSeconds: json['TimeoutInSeconds'] as int?,
);
}