toJson method
Implementation
core.Map<core.String, core.dynamic> toJson() => {
if (destinations != null)
'destinations': destinations!.map((value) => value.toJson()).toList(),
if (sources != null)
'sources': sources!.map((value) => value.toJson()).toList(),
};