UParkingInsideVehicleResponse.fromMap constructor

UParkingInsideVehicleResponse.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory UParkingInsideVehicleResponse.fromMap(Map<String, dynamic> json) => UParkingInsideVehicleResponse(
  reportId: json["reportId"],
  licencePlate: json["licencePlate"],
  vehicleType: json["vehicleType"],
  startDate: DateTime.parse(json["startDate"]),
  stayedMinutes: json["stayedMinutes"] ?? 0,
  estimatedAmount: (json["estimatedAmount"] as num?)?.toDouble() ?? 0,
  hasSubscription: json["hasSubscription"] ?? false,
  isCapped: json["isCapped"] ?? false,
  spotNumber: json["spotNumber"],
);