PacketList.fromJson constructor
PacketList.fromJson(
- Map<String, dynamic> json
)
Implementation
factory PacketList.fromJson(Map<String, dynamic> json) => PacketList(
registrationId: json["RegistrationId"],
name: json["Name"],
userType: json["UserType"],
isOnline: json["IsOnline"],
currentLocationLat: json["CurrentLocationLat"]?.toDouble(),
currentLocationLng: json["CurrentLocationLng"]?.toDouble(),
fcmToken: json["FCMToken"],
note: json["Note"],
vehicleType: json["VehicleType"],
status: json["Status"],
createDate: DateTime.parse(json["CreateDate"]),
updateDate: json["UpdateDate"],
);