UParkingTariffUpdateParams.fromMap constructor

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

Implementation

factory UParkingTariffUpdateParams.fromMap(Map<String, dynamic> json) => UParkingTariffUpdateParams(
  id: json["id"],
  vehicleType: json["vehicleType"],
  entrancePrice: json["entrancePrice"] == null ? null : (json["entrancePrice"] as num).toDouble(),
  dayHourlyPrice: json["dayHourlyPrice"] == null ? null : (json["dayHourlyPrice"] as num).toDouble(),
  nightHourlyPrice: json["nightHourlyPrice"] == null ? null : (json["nightHourlyPrice"] as num).toDouble(),
  dailyCap: json["dailyCap"] == null ? null : (json["dailyCap"] as num).toDouble(),
  weeklyPrice: json["weeklyPrice"] == null ? null : (json["weeklyPrice"] as num).toDouble(),
  monthlyPrice: json["monthlyPrice"] == null ? null : (json["monthlyPrice"] as num).toDouble(),
  quarterlyPrice: json["quarterlyPrice"] == null ? null : (json["quarterlyPrice"] as num).toDouble(),
  freeMinutes: json["freeMinutes"],
  nightStartHour: json["nightStartHour"],
  nightEndHour: json["nightEndHour"],
  holidayExtraPercent: json["holidayExtraPercent"],
  roundToFullHour: json["roundToFullHour"],
  perMinuteAfterFirstHour: json["perMinuteAfterFirstHour"],
  subscriptionDailyEntryLimit: json["subscriptionDailyEntryLimit"],
  subscriptionOfficeHoursOnly: json["subscriptionOfficeHoursOnly"],
  subscriptionExpiryReminderDays: json["subscriptionExpiryReminderDays"],
  detail1: json["detail1"],
  detail2: json["detail2"],
  addTags: json["addTags"] == null ? null : List<int>.from(json["addTags"]!.map((dynamic x) => x)),
  removeTags: json["removeTags"] == null ? null : List<int>.from(json["removeTags"]!.map((dynamic x) => x)),
  tags: json["tags"] == null ? null : List<int>.from(json["tags"]!.map((dynamic x) => x)),
  adminUserIds: json["adminUserIds"] == null ? null : List<String>.from(json["adminUserIds"]!.map((dynamic x) => x)),
  addAdminUserIds: json["addAdminUserIds"] == null ? null : List<String>.from(json["addAdminUserIds"]!.map((dynamic x) => x)),
  removeAdminUserIds: json["removeAdminUserIds"] == null ? null : List<String>.from(json["removeAdminUserIds"]!.map((dynamic x) => x)),
);