toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (cost != null) 'cost': cost!,
if (costInLocalCurrency != null)
'costInLocalCurrency': costInLocalCurrency!,
if (duration != null) 'duration': duration!,
};