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