toJson method
Implementation
Map<String, dynamic> toJson() {
final phoneType = this.phoneType;
final afterContactWorkTimeLimit = this.afterContactWorkTimeLimit;
final autoAccept = this.autoAccept;
final deskPhoneNumber = this.deskPhoneNumber;
return {
'PhoneType': phoneType.toValue(),
if (afterContactWorkTimeLimit != null)
'AfterContactWorkTimeLimit': afterContactWorkTimeLimit,
if (autoAccept != null) 'AutoAccept': autoAccept,
if (deskPhoneNumber != null) 'DeskPhoneNumber': deskPhoneNumber,
};
}