TeamShip constructor

TeamShip({
  1. dynamic id,
  2. dynamic bsid,
  3. int? time,
  4. DbJsonWraper? extra,
  5. List? trans,
  6. dynamic uid,
  7. dynamic sid,
  8. dynamic rid,
  9. dynamic fid,
  10. int? from,
  11. int? state,
  12. String? apply,
  13. String? alias,
  14. bool? dialog,
  15. bool? notice,
  16. bool? top,
  17. int? unread,
  18. String? recent,
  19. int? update,
  20. int? active,
})

Implementation

TeamShip({
  ObjectId? id,
  ObjectId? bsid,
  int? time,
  DbJsonWraper? extra,
  List<ObjectId>? trans,
  ObjectId? uid,
  ObjectId? sid,
  ObjectId? rid,
  ObjectId? fid,
  int? from,
  int? state,
  String? apply,
  String? alias,
  bool? dialog,
  bool? notice,
  bool? top,
  int? unread,
  String? recent,
  int? update,
  int? active,
})  : _id = id ?? ObjectId(),
      _bsid = bsid ?? ObjectId.fromHexString('000000000000000000000000'),
      _time = time ?? DateTime.now().millisecondsSinceEpoch,
      _extra = extra ?? DbJsonWraper(),
      _trans = trans ?? [],
      uid = uid ?? ObjectId.fromHexString('000000000000000000000000'),
      sid = sid ?? ObjectId.fromHexString('000000000000000000000000'),
      rid = rid ?? ObjectId.fromHexString('000000000000000000000000'),
      fid = fid ?? ObjectId.fromHexString('000000000000000000000000'),
      from = from ?? 0,
      state = state ?? 0,
      apply = apply ?? '',
      alias = alias ?? '',
      dialog = dialog ?? true,
      notice = notice ?? true,
      top = top ?? false,
      unread = unread ?? 0,
      recent = recent ?? '',
      update = update ?? DateTime.now().millisecondsSinceEpoch,
      active = active ?? DateTime.now().millisecondsSinceEpoch;