toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
if (this.callConfigs != null) {
json[r'call_configs'] = this.callConfigs;
} else {
json[r'call_configs'] = null;
}
json[r'called_numbers'] = this.calledNumbers;
if (this.callerConfigs != null) {
json[r'caller_configs'] = this.callerConfigs;
} else {
json[r'caller_configs'] = null;
}
json[r'caller_numbers'] = this.callerNumbers;
json[r'created_at'] = this.createdAt.toUtc().toIso8601String();
if (this.directRoutingConfigs != null) {
json[r'direct_routing_configs'] = this.directRoutingConfigs;
} else {
json[r'direct_routing_configs'] = null;
}
json[r'duration'] = this.duration;
json[r'id'] = this.id;
json[r'name'] = this.name;
if (this.pinProtectionConfigs != null) {
json[r'pin_protection_configs'] = this.pinProtectionConfigs;
} else {
json[r'pin_protection_configs'] = null;
}
if (this.pinRoutingConfigs != null) {
json[r'pin_routing_configs'] = this.pinRoutingConfigs;
} else {
json[r'pin_routing_configs'] = null;
}
json[r'trunk_ids'] = this.trunkIds;
json[r'updated_at'] = this.updatedAt.toUtc().toIso8601String();
return json;
}