Position.fromJson constructor
Position.fromJson(
- Map<String, dynamic> json
)
Implementation
Position.fromJson(Map<String, dynamic> json)
: userTag = json["user_tag"]??"",
beaconId = json["beacon_id"]??"",
inTime =TimestringToDateTime.encode(json["in_time"]??"1970-01-01T12:34:56.000Z"),
outTime =TimestringToDateTime.encode(json["out_time"]??"1970-01-01T12:34:56.000Z"),
doomId = json["doom_id"]??-1,
userName= json["user_name"]??"",
userRank = json["user_rank"]??"",
userRoomId = json["user_room_id"]??-1,
userDoomId = json["user_doom_id"]??-1,
name = json["name"]??"";