/* Options: Date: 2025-05-04 23:23:07 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: ListSettingsObjects.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class SettingsObject implements IConvertible { String? id; String? name; String? description; bool? readOnly; SettingsObjectTypes? type; EndpointTypes? endpointType; List? fields; SettingsObject({this.id,this.name,this.description,this.readOnly,this.type,this.endpointType,this.fields}); SettingsObject.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; name = json['name']; description = json['description']; readOnly = json['readOnly']; type = JsonConverters.fromJson(json['type'],'SettingsObjectTypes',context!); endpointType = JsonConverters.fromJson(json['endpointType'],'EndpointTypes',context!); fields = JsonConverters.fromJson(json['fields'],'List',context!); return this; } Map toJson() => { 'id': id, 'name': name, 'description': description, 'readOnly': readOnly, 'type': JsonConverters.toJson(type,'SettingsObjectTypes',context!), 'endpointType': JsonConverters.toJson(endpointType,'EndpointTypes',context!), 'fields': JsonConverters.toJson(fields,'List',context!) }; getTypeName() => "SettingsObject"; TypeContext? context = _ctx; } class ListSettingsObjectsResponse implements IConvertible { List? settingsObjects; ListSettingsObjectsResponse({this.settingsObjects}); ListSettingsObjectsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { settingsObjects = JsonConverters.fromJson(json['settingsObjects'],'List',context!); return this; } Map toJson() => { 'settingsObjects': JsonConverters.toJson(settingsObjects,'List',context!) }; getTypeName() => "ListSettingsObjectsResponse"; TypeContext? context = _ctx; } /** * Get all configurable settings objects for the authenticated user */ // @Route("/app/settings-objects", "GET") // @Api(Description="Get all configurable settings objects for the authenticated user") class ListSettingsObjects implements IReturn, IGet, IConvertible { ListSettingsObjects(); ListSettingsObjects.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => ListSettingsObjectsResponse(); getResponseTypeName() => "ListSettingsObjectsResponse"; getTypeName() => "ListSettingsObjects"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'team.evovoice.io', types: { 'SettingsObject': TypeInfo(TypeOf.Class, create:() => SettingsObject()), 'SettingsObjectTypes': TypeInfo(TypeOf.Class, create:() => SettingsObjectTypes()), 'EndpointTypes': TypeInfo(TypeOf.Class, create:() => EndpointTypes()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'SettingsField': TypeInfo(TypeOf.Class, create:() => SettingsField()), 'ListSettingsObjectsResponse': TypeInfo(TypeOf.Class, create:() => ListSettingsObjectsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ListSettingsObjects': TypeInfo(TypeOf.Class, create:() => ListSettingsObjects()), });