TrackingInfoModel.fromJson constructor
TrackingInfoModel.fromJson(
- Map<String, dynamic> json
)
Implementation
TrackingInfoModel.fromJson(Map<String, dynamic> json) {
if (json["id"] is int) this.id = json["id"];
if (json["allowedTimeBeforeTrack"] is int)
this.allowedTimeBeforeTrack = json["allowedTimeBeforeTrack"];
if (json["allowedDistanceBeforeTrack"] is double)
this.allowedDistanceBeforeTrack = json["allowedDistanceBeforeTrack"];
if (json["manualStatus"] is int) this.manualStatus = json["manualStatus"];
if (json["userInfo"] is Map)
this.userInfo =
json["userInfo"] == null ? null : _UserInfo.fromJson(json["userInfo"]);
if (json["proInfo"] is Map)
this.proInfo =
json["proInfo"] == null ? null : _ProInfo.fromJson(json["proInfo"]);
}