toJson method
Converts a EndpointHints instance to JSON data.
Implementation
Map<String, Object> toJson() {
final jsonData = <String, Object>{};
final tempForZones = forZones;
if (tempForZones != null) {
jsonData['forZones'] =
tempForZones.map((e) => e.toJson()).toList(growable: false);
}
return jsonData;
}