first commit

This commit is contained in:
Anbarasu
2026-05-26 18:01:57 +05:30
commit 6d59c8daf6
297 changed files with 35238 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
class Discount {
final int discountid;
final String discountname;
final String discountcode;
final String discountterms;
final double discountvalue;
Discount({
required this.discountid,
required this.discountname,
required this.discountcode,
required this.discountterms,
required this.discountvalue,
});
factory Discount.fromJson(Map<String, dynamic> json) {
return Discount(
discountid: json['discountid'],
discountname: json['discountname'],
discountcode: json['discountcode'],
discountterms: json['discountterms'],
discountvalue: (json['discountvalue'] ?? 0).toDouble(),
);
}
}