toJson method
Returns a JSON presentation of the object.
Implementation
@override
Map<String, Object> toJson({ClientUriConverter? clientUriConverter}) {
var result = <String, Object>{};
result['files'] =
files
.map(
(String value) =>
clientUriConverter?.toClientFilePath(value) ?? value,
)
.toList();
result['targets'] =
targets
.map(
(NavigationTarget value) =>
value.toJson(clientUriConverter: clientUriConverter),
)
.toList();
result['regions'] =
regions
.map(
(NavigationRegion value) =>
value.toJson(clientUriConverter: clientUriConverter),
)
.toList();
return result;
}