toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.owner != null) {
json[r'owner'] = this.owner;
} else {
json[r'owner'] = null;
}
json[r'slices'] = this.slices;
json[r'marketingCarriers'] = this.marketingCarriers;
json[r'operatingCarriers'] = this.operatingCarriers;
if (this.totalDurationMinutes != null) {
json[r'totalDurationMinutes'] = this.totalDurationMinutes;
} else {
json[r'totalDurationMinutes'] = null;
}
if (this.totalStops != null) {
json[r'totalStops'] = this.totalStops;
} else {
json[r'totalStops'] = null;
}
if (this.totalEmissionsKg != null) {
json[r'totalEmissionsKg'] = this.totalEmissionsKg;
} else {
json[r'totalEmissionsKg'] = null;
}
return json;
}