DescribePlayerSessionsOutput.fromJson constructor

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

Implementation

factory DescribePlayerSessionsOutput.fromJson(Map<String, dynamic> json) {
  return DescribePlayerSessionsOutput(
    nextToken: json['NextToken'] as String?,
    playerSessions: (json['PlayerSessions'] as List?)
        ?.whereNotNull()
        .map((e) => PlayerSession.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}