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