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