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