toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'sliceIndex'] = this.sliceIndex;
    json[r'segmentIndex'] = this.segmentIndex;
  if (this.cabinClass != null) {
    json[r'cabinClass'] = this.cabinClass;
  } else {
    json[r'cabinClass'] = null;
  }
  if (this.deck != null) {
    json[r'deck'] = this.deck;
  } else {
    json[r'deck'] = null;
  }
    json[r'aisles'] = this.aisles;
    json[r'rows'] = this.rows;
  return json;
}