copyWith method
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,
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,
);