ListReplaysResponse.fromJson constructor

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

Implementation

factory ListReplaysResponse.fromJson(Map<String, dynamic> json) {
  return ListReplaysResponse(
    nextToken: json['NextToken'] as String?,
    replays: (json['Replays'] as List?)
        ?.whereNotNull()
        .map((e) => Replay.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}