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