Payment constructor

Payment({
  1. dynamic id,
  2. dynamic bsid,
  3. int? time,
  4. DbJsonWraper? extra,
  5. List? trans,
  6. dynamic uid,
  7. int? type,
  8. int? state,
  9. int? rmbfen,
  10. Message? notice,
  11. PayGoods? paygoods,
  12. dynamic relation,
  13. int? substate,
  14. String? describe,
  15. int? update,
  16. DbJsonWraper? activeRechargeOrderData,
  17. DbJsonWraper? activeRechargeOrderResult,
  18. int? activeRechargeNotifyCount,
  19. List<DbJsonWraper>? activeRechargeNotifyResult,
  20. String? passiveRechargeOrderNo,
  21. DbJsonWraper? passiveRechargeOrderReceipt,
  22. int? passiveRechargeVerifyCount,
  23. List<DbJsonWraper>? passiveRechargeVerifyResult,
  24. String? cashoutAccountTp,
  25. String? cashoutAccountNo,
  26. int? cashoutActualRmbfen,
  27. bool? virtualValueMode,
  28. int? virtualCustomXNo,
  29. dynamic virtualCustomXId,
  30. List? bonusesUids,
  31. List<int>? bonusesRmbfen,
  32. List? bonusesPending,
})

Implementation

Payment({
  ObjectId? id,
  ObjectId? bsid,
  int? time,
  DbJsonWraper? extra,
  List<ObjectId>? trans,
  ObjectId? uid,
  int? type,
  int? state,
  int? rmbfen,
  this.notice,
  this.paygoods,
  ObjectId? relation,
  int? substate,
  String? describe,
  int? update,
  DbJsonWraper? activeRechargeOrderData,
  DbJsonWraper? activeRechargeOrderResult,
  int? activeRechargeNotifyCount,
  List<DbJsonWraper>? activeRechargeNotifyResult,
  String? passiveRechargeOrderNo,
  DbJsonWraper? passiveRechargeOrderReceipt,
  int? passiveRechargeVerifyCount,
  List<DbJsonWraper>? passiveRechargeVerifyResult,
  String? cashoutAccountTp,
  String? cashoutAccountNo,
  int? cashoutActualRmbfen,
  bool? virtualValueMode,
  int? virtualCustomXNo,
  ObjectId? virtualCustomXId,
  List<ObjectId>? bonusesUids,
  List<int>? bonusesRmbfen,
  List<ObjectId>? bonusesPending,
})  : _id = id ?? ObjectId(),
      _bsid = bsid ?? ObjectId.fromHexString('000000000000000000000000'),
      _time = time ?? DateTime.now().millisecondsSinceEpoch,
      _extra = extra ?? DbJsonWraper(),
      _trans = trans ?? [],
      uid = uid ?? ObjectId.fromHexString('000000000000000000000000'),
      type = type ?? 0,
      state = state ?? 0,
      rmbfen = rmbfen ?? 0,
      relation = relation ?? ObjectId.fromHexString('000000000000000000000000'),
      substate = substate ?? 0,
      describe = describe ?? '',
      update = update ?? DateTime.now().millisecondsSinceEpoch,
      activeRechargeOrderData = activeRechargeOrderData ?? DbJsonWraper(),
      activeRechargeOrderResult = activeRechargeOrderResult ?? DbJsonWraper(),
      activeRechargeNotifyCount = activeRechargeNotifyCount ?? 0,
      activeRechargeNotifyResult = activeRechargeNotifyResult ?? [],
      passiveRechargeOrderNo = passiveRechargeOrderNo ?? '',
      passiveRechargeOrderReceipt = passiveRechargeOrderReceipt ?? DbJsonWraper(),
      passiveRechargeVerifyCount = passiveRechargeVerifyCount ?? 0,
      passiveRechargeVerifyResult = passiveRechargeVerifyResult ?? [],
      cashoutAccountTp = cashoutAccountTp ?? '',
      cashoutAccountNo = cashoutAccountNo ?? '',
      cashoutActualRmbfen = cashoutActualRmbfen ?? 0,
      virtualValueMode = virtualValueMode ?? false,
      virtualCustomXNo = virtualCustomXNo ?? 0,
      virtualCustomXId = virtualCustomXId ?? ObjectId.fromHexString('000000000000000000000000'),
      bonusesUids = bonusesUids ?? [],
      bonusesRmbfen = bonusesRmbfen ?? [],
      bonusesPending = bonusesPending ?? [];