copyWith method

NmDialPlan copyWith({
  1. String? commandSetId,
  2. int? priority,
  3. String? proTag,
  4. bool clearProTag = false,
  5. int? onlineMax,
  6. int? addMax,
  7. bool? canIn,
  8. bool? canOut,
  9. bool? canSout,
  10. bool? notVip,
  11. Set<String>? qualityFlags,
  12. bool? capOk,
  13. bool? capNew,
  14. bool? capFail,
  15. int? diffSlow,
  16. int? diffMin,
  17. int? diffMinOut,
  18. int? timeWake,
  19. bool clearTimeWake = false,
  20. int? timeSleep,
  21. bool clearTimeSleep = false,
  22. int? timeWorkWake,
  23. bool clearTimeWorkWake = false,
  24. int? timeWorkSleep,
  25. bool clearTimeWorkSleep = false,
  26. int? timeHolidayWake,
  27. bool clearTimeHolidayWake = false,
  28. int? timeHolidaySleep,
  29. bool clearTimeHolidaySleep = false,
  30. List<NmPlanDirectionSlot>? directions,
  31. int? iattMin,
  32. int? iattMax,
  33. int? iattSoft,
  34. int? inAcdMin,
  35. int? inAcdMax,
  36. int? outAcdMin,
  37. int? outAcdMax,
  38. bool? forwarding,
  39. int? outInAns,
  40. bool? conn,
  41. bool? rand,
  42. bool? inWait,
  43. bool? inSound,
  44. int? mayLimit,
  45. int? monLimit,
  46. int? msmLimit,
  47. int? smsoutSoft,
  48. int? smsoutHard,
  49. int? sattSoft,
  50. int? sattHard,
  51. int? sattSoftDay,
  52. int? sattHardDay,
  53. int? sattSoftTotal,
  54. int? sattHardTotal,
  55. int? nospam,
})

Copy with.

Implementation

NmDialPlan copyWith({
  String? commandSetId,
  int? priority,
  String? proTag,
  bool clearProTag = false,
  int? onlineMax,
  int? addMax,
  bool? canIn,
  bool? canOut,
  bool? canSout,
  bool? notVip,
  Set<String>? qualityFlags,
  bool? capOk,
  bool? capNew,
  bool? capFail,
  int? diffSlow,
  int? diffMin,
  int? diffMinOut,
  int? timeWake,
  bool clearTimeWake = false,
  int? timeSleep,
  bool clearTimeSleep = false,
  int? timeWorkWake,
  bool clearTimeWorkWake = false,
  int? timeWorkSleep,
  bool clearTimeWorkSleep = false,
  int? timeHolidayWake,
  bool clearTimeHolidayWake = false,
  int? timeHolidaySleep,
  bool clearTimeHolidaySleep = false,
  List<NmPlanDirectionSlot>? directions,
  int? iattMin,
  int? iattMax,
  int? iattSoft,
  int? inAcdMin,
  int? inAcdMax,
  int? outAcdMin,
  int? outAcdMax,
  bool? forwarding,
  int? outInAns,
  bool? conn,
  bool? rand,
  bool? inWait,
  bool? inSound,
  int? mayLimit,
  int? monLimit,
  int? msmLimit,
  int? smsoutSoft,
  int? smsoutHard,
  int? sattSoft,
  int? sattHard,
  int? sattSoftDay,
  int? sattHardDay,
  int? sattSoftTotal,
  int? sattHardTotal,
  int? nospam,
}) => NmDialPlan(
  id: id,
  commandSetId: commandSetId ?? this.commandSetId,
  priority: priority ?? this.priority,
  proTag: clearProTag ? null : proTag ?? this.proTag,
  onlineMax: onlineMax ?? this.onlineMax,
  addMax: addMax ?? this.addMax,
  canIn: canIn ?? this.canIn,
  canOut: canOut ?? this.canOut,
  canSout: canSout ?? this.canSout,
  notVip: notVip ?? this.notVip,
  qualityFlags: qualityFlags ?? this.qualityFlags,
  capOk: capOk ?? this.capOk,
  capNew: capNew ?? this.capNew,
  capFail: capFail ?? this.capFail,
  diffSlow: diffSlow ?? this.diffSlow,
  diffMin: diffMin ?? this.diffMin,
  diffMinOut: diffMinOut ?? this.diffMinOut,
  timeWake: clearTimeWake ? null : timeWake ?? this.timeWake,
  timeSleep: clearTimeSleep ? null : timeSleep ?? this.timeSleep,
  timeWorkWake: clearTimeWorkWake ? null : timeWorkWake ?? this.timeWorkWake,
  timeWorkSleep: clearTimeWorkSleep ? null : timeWorkSleep ?? this.timeWorkSleep,
  timeHolidayWake: clearTimeHolidayWake ? null : timeHolidayWake ?? this.timeHolidayWake,
  timeHolidaySleep: clearTimeHolidaySleep ? null : timeHolidaySleep ?? this.timeHolidaySleep,
  directions: directions ?? this.directions,
  iattMin: iattMin ?? this.iattMin,
  iattMax: iattMax ?? this.iattMax,
  iattSoft: iattSoft ?? this.iattSoft,
  inAcdMin: inAcdMin ?? this.inAcdMin,
  inAcdMax: inAcdMax ?? this.inAcdMax,
  outAcdMin: outAcdMin ?? this.outAcdMin,
  outAcdMax: outAcdMax ?? this.outAcdMax,
  forwarding: forwarding ?? this.forwarding,
  outInAns: outInAns ?? this.outInAns,
  conn: conn ?? this.conn,
  rand: rand ?? this.rand,
  inWait: inWait ?? this.inWait,
  inSound: inSound ?? this.inSound,
  mayLimit: mayLimit ?? this.mayLimit,
  monLimit: monLimit ?? this.monLimit,
  msmLimit: msmLimit ?? this.msmLimit,
  smsoutSoft: smsoutSoft ?? this.smsoutSoft,
  smsoutHard: smsoutHard ?? this.smsoutHard,
  sattSoft: sattSoft ?? this.sattSoft,
  sattHard: sattHard ?? this.sattHard,
  sattSoftDay: sattSoftDay ?? this.sattSoftDay,
  sattHardDay: sattHardDay ?? this.sattHardDay,
  sattSoftTotal: sattSoftTotal ?? this.sattSoftTotal,
  sattHardTotal: sattHardTotal ?? this.sattHardTotal,
  nospam: nospam ?? this.nospam,
);