/* Options: Date: 2025-05-04 22:55:59 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://team.evovoice.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AppUpdateSystemSettings.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class Struct extends Map implements IConvertible { Struct(); Struct.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "Struct"; TypeContext? context = _ctx; } class Value implements IConvertible { bool? boolValue; String? stringValue; double? numberValue; List? listValue; Struct? structValue; Value({this.boolValue,this.stringValue,this.numberValue,this.listValue,this.structValue}); Value.fromJson(Map json) { fromMap(json); } fromMap(Map json) { boolValue = json['boolValue']; stringValue = json['stringValue']; numberValue = JsonConverters.toDouble(json['numberValue']); listValue = JsonConverters.fromJson(json['listValue'],'List',context!); structValue = JsonConverters.fromJson(json['structValue'],'Struct',context!); return this; } Map toJson() => { 'boolValue': boolValue, 'stringValue': stringValue, 'numberValue': numberValue, 'listValue': JsonConverters.toJson(listValue,'List',context!), 'structValue': JsonConverters.toJson(structValue,'Struct',context!) }; getTypeName() => "Value"; TypeContext? context = _ctx; } enum UserDataFieldModes { Hidden, ReadOnly, ReadWrite, } enum EndpointTypes { PhoneNumber, User, FaxNumber, EmailAddress, Unused_1, Unused_2, Unused_3, Unused_4, Unused_5, Team, Assistant, } enum ValueTypes { NotSpecified, String, Boolean, Number, List, Struct, Transition, Custom, Date, AudioFile, TimeZoneId, PhoneNumber, User, Endpoint, Time, File, FaxNumber, EmailAccount, Customer, Flow, Team, FlowReference, Integration, Assistant, } enum UIHints { None, LargeText, InlineForm, Password, InlineStruct, } enum DataFieldUniqueness { NotUnique, Unique, UniqueToCustomer, } class DataField implements IConvertible { String? id; String? name; ValueTypes? type; UIHints? uiHint; String? uiTab; bool? isAsync; bool? disableBinding; DataType? structType; DataType? listType; String? description; List? possibleValues; bool? isOutput; String? customFieldValuesUrl; Value? defaultValue; String? transitionNameFormat; DataFieldUniqueness? uniqueness; bool? voiceOnly; String? conditionalVisibilityField; String? conditionalVisibilityValue; bool? noEvalTemplate; UserDataFieldModes? userMode; bool? anyValueType; DataField({this.id,this.name,this.type,this.uiHint,this.uiTab,this.isAsync,this.disableBinding,this.structType,this.listType,this.description,this.possibleValues,this.isOutput,this.customFieldValuesUrl,this.defaultValue,this.transitionNameFormat,this.uniqueness,this.voiceOnly,this.conditionalVisibilityField,this.conditionalVisibilityValue,this.noEvalTemplate,this.userMode,this.anyValueType}); DataField.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; type = JsonConverters.fromJson(json['type'],'ValueTypes',context!); uiHint = JsonConverters.fromJson(json['uiHint'],'UIHints',context!); uiTab = json['uiTab']; isAsync = json['isAsync']; disableBinding = json['disableBinding']; structType = JsonConverters.fromJson(json['structType'],'DataType',context!); listType = JsonConverters.fromJson(json['listType'],'DataType',context!); description = json['description']; possibleValues = JsonConverters.fromJson(json['possibleValues'],'List',context!); isOutput = json['isOutput']; customFieldValuesUrl = json['customFieldValuesUrl']; defaultValue = JsonConverters.fromJson(json['defaultValue'],'Value',context!); transitionNameFormat = json['transitionNameFormat']; uniqueness = JsonConverters.fromJson(json['uniqueness'],'DataFieldUniqueness',context!); voiceOnly = json['voiceOnly']; conditionalVisibilityField = json['conditionalVisibilityField']; conditionalVisibilityValue = json['conditionalVisibilityValue']; noEvalTemplate = json['noEvalTemplate']; userMode = JsonConverters.fromJson(json['userMode'],'UserDataFieldModes',context!); anyValueType = json['anyValueType']; return this; } Map toJson() => { 'id': id, 'name': name, 'type': JsonConverters.toJson(type,'ValueTypes',context!), 'uiHint': JsonConverters.toJson(uiHint,'UIHints',context!), 'uiTab': uiTab, 'isAsync': isAsync, 'disableBinding': disableBinding, 'structType': JsonConverters.toJson(structType,'DataType',context!), 'listType': JsonConverters.toJson(listType,'DataType',context!), 'description': description, 'possibleValues': JsonConverters.toJson(possibleValues,'List',context!), 'isOutput': isOutput, 'customFieldValuesUrl': customFieldValuesUrl, 'defaultValue': JsonConverters.toJson(defaultValue,'Value',context!), 'transitionNameFormat': transitionNameFormat, 'uniqueness': JsonConverters.toJson(uniqueness,'DataFieldUniqueness',context!), 'voiceOnly': voiceOnly, 'conditionalVisibilityField': conditionalVisibilityField, 'conditionalVisibilityValue': conditionalVisibilityValue, 'noEvalTemplate': noEvalTemplate, 'userMode': JsonConverters.toJson(userMode,'UserDataFieldModes',context!), 'anyValueType': anyValueType }; getTypeName() => "DataField"; TypeContext? context = _ctx; } class DataType implements IConvertible { String? typeName; List? fields; DataType({this.typeName,this.fields}); DataType.fromJson(Map json) { fromMap(json); } fromMap(Map json) { typeName = json['typeName']; fields = JsonConverters.fromJson(json['fields'],'List',context!); return this; } Map toJson() => { 'typeName': typeName, 'fields': JsonConverters.toJson(fields,'List',context!) }; getTypeName() => "DataType"; TypeContext? context = _ctx; } class EndpointDataField extends DataField implements IConvertible { bool? showInSearch; bool? showInLists; EndpointTypes? endpointType; bool? isCallerId; bool? isKnob; EndpointDataField({this.showInSearch,this.showInLists,this.endpointType,this.isCallerId,this.isKnob}); EndpointDataField.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); showInSearch = json['showInSearch']; showInLists = json['showInLists']; endpointType = JsonConverters.fromJson(json['endpointType'],'EndpointTypes',context!); isCallerId = json['isCallerId']; isKnob = json['isKnob']; return this; } Map toJson() => super.toJson()..addAll({ 'showInSearch': showInSearch, 'showInLists': showInLists, 'endpointType': JsonConverters.toJson(endpointType,'EndpointTypes',context!), 'isCallerId': isCallerId, 'isKnob': isKnob }); getTypeName() => "EndpointDataField"; TypeContext? context = _ctx; } class AppSystemSettingsInfo implements IConvertible { List? endpointFields; /** * Is this customer a HostedSuite customer? */ // @ApiMember(Description="Is this customer a HostedSuite customer?") bool? isHostedSuiteCustomer; /** * The customer's time zone */ // @ApiMember(Description="The customer's time zone") String? customerTimeZoneId; AppSystemSettingsInfo({this.endpointFields,this.isHostedSuiteCustomer,this.customerTimeZoneId}); AppSystemSettingsInfo.fromJson(Map json) { fromMap(json); } fromMap(Map json) { endpointFields = JsonConverters.fromJson(json['endpointFields'],'List',context!); isHostedSuiteCustomer = json['isHostedSuiteCustomer']; customerTimeZoneId = json['customerTimeZoneId']; return this; } Map toJson() => { 'endpointFields': JsonConverters.toJson(endpointFields,'List',context!), 'isHostedSuiteCustomer': isHostedSuiteCustomer, 'customerTimeZoneId': customerTimeZoneId }; getTypeName() => "AppSystemSettingsInfo"; TypeContext? context = _ctx; } // @Route("/portal/system-settings", "PATCH") class AppUpdateSystemSettings implements IReturn, IConvertible, IPatch { String? accountId; String? customerId; String? customerTimeZoneId; AppUpdateSystemSettings({this.accountId,this.customerId,this.customerTimeZoneId}); AppUpdateSystemSettings.fromJson(Map json) { fromMap(json); } fromMap(Map json) { accountId = json['accountId']; customerId = json['customerId']; customerTimeZoneId = json['customerTimeZoneId']; return this; } Map toJson() => { 'accountId': accountId, 'customerId': customerId, 'customerTimeZoneId': customerTimeZoneId }; createResponse() => AppSystemSettingsInfo(); getResponseTypeName() => "AppSystemSettingsInfo"; getTypeName() => "AppUpdateSystemSettings"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'team.evovoice.io', types: { 'Struct': TypeInfo(TypeOf.Class, create:() => Struct()), 'Value': TypeInfo(TypeOf.Class, create:() => Value()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'UserDataFieldModes': TypeInfo(TypeOf.Enum, enumValues:UserDataFieldModes.values), 'EndpointTypes': TypeInfo(TypeOf.Enum, enumValues:EndpointTypes.values), 'ValueTypes': TypeInfo(TypeOf.Enum, enumValues:ValueTypes.values), 'UIHints': TypeInfo(TypeOf.Enum, enumValues:UIHints.values), 'DataFieldUniqueness': TypeInfo(TypeOf.Enum, enumValues:DataFieldUniqueness.values), 'DataField': TypeInfo(TypeOf.Class, create:() => DataField()), 'DataType': TypeInfo(TypeOf.Class, create:() => DataType()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'EndpointDataField': TypeInfo(TypeOf.Class, create:() => EndpointDataField()), 'AppSystemSettingsInfo': TypeInfo(TypeOf.Class, create:() => AppSystemSettingsInfo()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'AppUpdateSystemSettings': TypeInfo(TypeOf.Class, create:() => AppUpdateSystemSettings()), });