toJson method
Implementation
Map<String, dynamic> toJson() {
return {
if (properties != null)
'properties': properties!.map((p) => p.toJson()).toList(),
if (displayName != null) 'displayName': displayName,
if (name != null) 'name': name,
if (documentationUrl != null) 'documentationUrl': documentationUrl,
};
}