BrandGoodslist constructor

const BrandGoodslist({
  1. @JsonKey(name: 'activityType') @Default(0) num activitytype,
  2. @JsonKey(name: 'actualPrice') @Default(0) num actualprice,
  3. @JsonKey(name: 'brandId') @Default('') String brandid,
  4. @JsonKey(name: 'cid') @Default(0) num cid,
  5. @JsonKey(name: 'commissionRate') @Default(0) num commissionrate,
  6. @JsonKey(name: 'commissionType') @Default(0) num commissiontype,
  7. @JsonKey(name: 'couponConditions') @Default('') String couponconditions,
  8. @JsonKey(name: 'couponEndTime') @Default('') String couponendtime,
  9. @JsonKey(name: 'couponId') @Default('') String couponid,
  10. @JsonKey(name: 'couponLink') @Default('') String couponlink,
  11. @JsonKey(name: 'couponPrice') @Default(0) num couponprice,
  12. @JsonKey(name: 'couponReceiveNum') @Default(0) num couponreceivenum,
  13. @JsonKey(name: 'couponStartTime') @Default('') String couponstarttime,
  14. @JsonKey(name: 'couponTotalNum') @Default(0) num coupontotalnum,
  15. @JsonKey(name: 'dTitle') @Default('') String dtitle,
  16. @JsonKey(name: 'dailySales') @Default(0) num dailysales,
  17. @JsonKey(name: 'desc') @Default('') String desc,
  18. @JsonKey(name: 'discount') @Default(0) num discount,
  19. @JsonKey(name: 'flagshipStore') @Default(0) num flagshipstore,
  20. @JsonKey(name: 'freeshipRemoteDistrct') @Default(0) num freeshipremotedistrct,
  21. @JsonKey(name: 'goodsId') @Default('') String goodsid,
  22. @JsonKey(name: 'goodsSign') @Default('') String goodssign,
  23. @JsonKey(name: 'id') @Default(0) num id,
  24. @JsonKey(name: 'mainPic') @Default('') String mainpic,
  25. @JsonKey(name: 'marketingMainPic') @Default('') String marketingmainpic,
  26. @JsonKey(name: 'monthSales') @Default(0) num monthsales,
  27. @JsonKey(name: 'originPrice') @Default(0) num originprice,
  28. @JsonKey(name: 'specialText') @Default([]) List specialtext,
  29. @JsonKey(name: 'title') @Default('') String title,
  30. @JsonKey(name: 'video') @Default('') String video,
})

Implementation

const factory BrandGoodslist({
    @JsonKey(name: 'activityType') @Default(0)  num activitytype,
    @JsonKey(name: 'actualPrice') @Default(0)  num actualprice,
    @JsonKey(name: 'brandId') @Default('')  String brandid,
    @JsonKey(name: 'cid') @Default(0)  num cid,
    @JsonKey(name: 'commissionRate') @Default(0)  num commissionrate,
    @JsonKey(name: 'commissionType') @Default(0)  num commissiontype,
    @JsonKey(name: 'couponConditions') @Default('')  String couponconditions,
    @JsonKey(name: 'couponEndTime') @Default('')  String couponendtime,
    @JsonKey(name: 'couponId') @Default('')  String couponid,
    @JsonKey(name: 'couponLink') @Default('')  String couponlink,
    @JsonKey(name: 'couponPrice') @Default(0)  num couponprice,
    @JsonKey(name: 'couponReceiveNum') @Default(0)  num couponreceivenum,
    @JsonKey(name: 'couponStartTime') @Default('')  String couponstarttime,
    @JsonKey(name: 'couponTotalNum') @Default(0)  num coupontotalnum,
    @JsonKey(name: 'dTitle') @Default('')  String dtitle,
    @JsonKey(name: 'dailySales') @Default(0)  num dailysales,
    @JsonKey(name: 'desc') @Default('')  String desc,
    @JsonKey(name: 'discount') @Default(0)  num discount,
    @JsonKey(name: 'flagshipStore') @Default(0)  num flagshipstore,
    @JsonKey(name: 'freeshipRemoteDistrct') @Default(0)  num freeshipremotedistrct,
    @JsonKey(name: 'goodsId') @Default('')  String goodsid,
    @JsonKey(name: 'goodsSign') @Default('')  String goodssign,
    @JsonKey(name: 'id') @Default(0)  num id,
    @JsonKey(name: 'mainPic') @Default('')  String mainpic,
    @JsonKey(name: 'marketingMainPic') @Default('')  String marketingmainpic,
    @JsonKey(name: 'monthSales') @Default(0)  num monthsales,
    @JsonKey(name: 'originPrice') @Default(0)  num originprice,
    @JsonKey(name: 'specialText') @Default([])  List<dynamic> specialtext,
    @JsonKey(name: 'title') @Default('')  String title,
    @JsonKey(name: 'video') @Default('')  String video,
  }) = _BrandGoodslist;