ExtraServices.fromJson constructor

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

Implementation

ExtraServices.fromJson(Map<String, dynamic> json) {
  cabin = json['cabin'] != null ?  Cabin.fromJson(json['cabin']) : null;
  if (json['baggages'] != null) {
    baggages = <Baggages>[];
    json['baggages'].forEach((v) {
      baggages!.add( Baggages.fromJson(v));
    });
  }
  cabinClassMarketingName = json['cabin_class_marketing_name'];
  passengerId = json['passenger_id'];
  fareBasisCode = json['fare_basis_code'];
  cabinClass = json['cabin_class'];
}