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