toJson method
Implementation
Map<String, Object?> toJson() {
var id = this.id;
var name = this.name;
var properties = this.properties;
final json = <String, Object?>{};
json[r'id'] = id;
json[r'name'] = name;
if (properties != null) {
json[r'properties'] = properties;
}
return json;
}