Player.fromMap constructor

Player.fromMap(
  1. Map<String, dynamic> json
)

Decodes Player object from json map

Implementation

factory Player.fromMap(Map<String, dynamic> json) => Player(
      idPlayer: json['idplayer'] == null ? '-1' : json['idplayer'],
      surname: json['surname'] == null ? null : json['surname'],
      name: json['name'] == null ? null : json['name'],
      patronymic: json['patronymic'] == null ? null : json['patronymic'],
      comment: json['comment'] == null ? null : json['comment'],
      dbChgkInfoTag:
          json['db_chgk_info_tag'] == null ? null : json['db_chgk_info_tag'],
    );