PlayerPropertiesChangedEvent.fromJson constructor

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

Implementation

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