GpsChangeEventBean.fromJson constructor

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

Implementation

factory GpsChangeEventBean.fromJson(Map<String, dynamic> json) =>
    GpsChangeEventBean(
      type: json["type"],
      list: List<int>.from((json["list"] ?? []).map((x) => x)),
      gpsPathInfo: GpsPathInfo.fromJson(json["gpsPathInfo"] ?? {}),
      location: Location.fromJson(json["location"] ?? {}),
      progress: json["progress"] ?? 0,
    );