cannot generate g dart file with flutter pub run build_runner build which class is shown below and getting this error just because of enum parameter:
enum Salescategory { sales, salesReturn, salesPurchase }
@Entity()
class SalesConverterModel {
@Id()
int? id;
@Property()
Salescategory salesCategory;
PartyModel? partyName;
String? broker;
String? onAc;
String? outstate;
String? qaulity;
SalesConverterModel({
this.id,
this.salesCategory = Salescategory.sales,
this.partyName,
this.broker,
this.onAc,
this.outstate,
this.qaulity,
});
}