User.fromJson constructor

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

Implementation

User.fromJson(Map<String, dynamic> json)
    : tag = json["tag"] ??"",
      name = json["name"] ??"",
      roomId = json["room_id"] ??-1,
      doomId = json["doom_id"] ??-1,
      location = json["location"] ?? "",
      state = json["state"] ?? "",
      token = json["token"] ?? "error in fromJson";