toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'slices'] = this.slices;
json[r'passengers'] = this.passengers;
if (this.cabinClass != null) {
json[r'cabinClass'] = this.cabinClass;
} else {
json[r'cabinClass'] = null;
}
if (this.filters != null) {
json[r'filters'] = this.filters;
} else {
json[r'filters'] = null;
}
if (this.page != null) {
json[r'page'] = this.page;
} else {
json[r'page'] = null;
}
if (this.limit != null) {
json[r'limit'] = this.limit;
} else {
json[r'limit'] = null;
}
if (this.currency != null) {
json[r'currency'] = this.currency;
} else {
json[r'currency'] = null;
}
return json;
}