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