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