/*
 * @Author       : WuWei
 * @LastEditors  : WuWei
 * @Date         : 2023-02-21 09:26:07
 * @LastEditTime : 2023-05-10 17:31:58
 * @Description  : Do not edit
 */
class PositionInfoModel {
  List<ParkingLotsOfPositionInfoModel>? parkingLots;
  OtherOfPositionInfoModel? other;

  PositionInfoModel({
    this.parkingLots,
    this.other,
  });

  PositionInfoModel.fromJson(json) {
    Map<String, dynamic> map = Map.from(json ?? {});

    parkingLots = List<ParkingLotsOfPositionInfoModel>.from(
        (map["parkingLots"] ?? [])
            .map((x) => ParkingLotsOfPositionInfoModel.fromJson(x)));
    other = OtherOfPositionInfoModel.fromJson(map["other"] ?? {});
  }

  Map<String, dynamic> toJson() {
    Map<String, dynamic> json = Map<String, dynamic>();

    json['parkingLots'] =
        List<dynamic>.from((parkingLots ?? []).map((x) => x.toJson()));
    json['other'] = this.other!.toJson();

    return json;
  }
}

class ParkingLotsOfPositionInfoModel {
  String? value;
  String? label;
  String? type;

  ParkingLotsOfPositionInfoModel({
    this.value,
    this.label,
    this.type,
  });

  ParkingLotsOfPositionInfoModel.fromJson(json) {
    Map<String, dynamic> map = Map.from(json ?? {});

    value = map['value'];
    label = map['label'];
    type = map['type'];
  }

  Map<String, dynamic> toJson() {
    Map<String, dynamic> json = Map<String, dynamic>();

    json['value'] = this.value;
    json['label'] = this.label;
    json['type'] = this.type;

    return json;
  }
}

class OtherOfPositionInfoModel {
  String? value;
  String? label;
  String? type;

  OtherOfPositionInfoModel({
    this.value,
    this.label,
    this.type,
  });

  OtherOfPositionInfoModel.fromJson(json) {
    Map<String, dynamic> map = Map.from(json ?? {});

    value = map['value'];
    label = map['label'];
    type = map['type'];
  }

  Map<String, dynamic> toJson() {
    Map<String, dynamic> json = Map<String, dynamic>();

    json['value'] = this.value;
    json['label'] = this.label;
    json['type'] = this.type;

    return json;
  }
}
