PlayerMessagesLoggedEvent.fromJson constructor
Implementation
factory PlayerMessagesLoggedEvent.fromJson(Map<String, dynamic> json) {
return PlayerMessagesLoggedEvent(
playerId: PlayerId.fromJson(json['playerId'] as String),
messages:
(json['messages'] as List)
.map((e) => PlayerMessage.fromJson(e as Map<String, dynamic>))
.toList(),
);
}