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