toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (name != null) {
    json[r'name'] = name;
  }
  if (properties != null) {
    json[r'properties'] = properties;
  }
  return json;
}