toJson method

Map<String, dynamic> toJson()

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,
  };
}