Map<String, dynamic> toJson() { return <String, dynamic>{ if (contentType != null) r'contentType': contentType, if (name != null) r'name': name, }; }