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