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