DescribeGameSessionDetailsOutput.fromJson constructor

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

Implementation

factory DescribeGameSessionDetailsOutput.fromJson(Map<String, dynamic> json) {
  return DescribeGameSessionDetailsOutput(
    gameSessionDetails: (json['GameSessionDetails'] as List?)
        ?.whereNotNull()
        .map((e) => GameSessionDetail.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}