PayGoods constructor

PayGoods({
  1. dynamic id,
  2. dynamic bsid,
  3. int? time,
  4. DbJsonWraper? extra,
  5. List? trans,
  6. int? goodsNo,
  7. String? goodsName,
  8. String? goodsIcon,
  9. String? goodsDesc,
  10. int? goodsActualRmbfen,
  11. int? goodsGottenRmbfen,
  12. int? goodsVirtualValue,
})

Implementation

PayGoods({
  ObjectId? id,
  ObjectId? bsid,
  int? time,
  DbJsonWraper? extra,
  List<ObjectId>? trans,
  int? goodsNo,
  String? goodsName,
  String? goodsIcon,
  String? goodsDesc,
  int? goodsActualRmbfen,
  int? goodsGottenRmbfen,
  int? goodsVirtualValue,
})  : _id = id ?? ObjectId(),
      _bsid = bsid ?? ObjectId.fromHexString('000000000000000000000000'),
      _time = time ?? DateTime.now().millisecondsSinceEpoch,
      _extra = extra ?? DbJsonWraper(),
      _trans = trans ?? [],
      goodsNo = goodsNo ?? 0,
      goodsName = goodsName ?? '',
      goodsIcon = goodsIcon ?? '',
      goodsDesc = goodsDesc ?? '',
      goodsActualRmbfen = goodsActualRmbfen ?? 0,
      goodsGottenRmbfen = goodsGottenRmbfen ?? 0,
      goodsVirtualValue = goodsVirtualValue ?? 0;