PlayerMessage.fromJson constructor

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

Implementation

factory PlayerMessage.fromJson(Map<String, dynamic> json) {
  return PlayerMessage(
    level: PlayerMessageLevel.fromJson(json['level'] as String),
    message: json['message'] as String,
  );
}