PlayerErrorsRaisedEvent.fromJson constructor

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

Implementation

factory PlayerErrorsRaisedEvent.fromJson(Map<String, dynamic> json) {
  return PlayerErrorsRaisedEvent(
    playerId: PlayerId.fromJson(json['playerId'] as String),
    errors: (json['errors'] as List)
        .map((e) => PlayerError.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}