/* Options: Date: 2025-08-05 02:03:00 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://www.asg.com.au/RestApi //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateService.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class PropertiesProxy implements IConvertible { String? Name; String? PropertyType; bool? IsPersistent; bool? AllowSort; bool? AllowFilter; bool? IsKey; PropertiesProxy({this.Name,this.PropertyType,this.IsPersistent,this.AllowSort,this.AllowFilter,this.IsKey}); PropertiesProxy.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Name = json['Name']; PropertyType = json['PropertyType']; IsPersistent = json['IsPersistent']; AllowSort = json['AllowSort']; AllowFilter = json['AllowFilter']; IsKey = json['IsKey']; return this; } Map toJson() => { 'Name': Name, 'PropertyType': PropertyType, 'IsPersistent': IsPersistent, 'AllowSort': AllowSort, 'AllowFilter': AllowFilter, 'IsKey': IsKey }; getTypeName() => "PropertiesProxy"; TypeContext? context = _ctx; } class ContentsProxy implements IConvertible { String? Name; bool? ReadOnly; String? UrlKey; String? ClrType; String? Access; List? Properties; List? Children; bool? AutogenerateProperties; String? parentId; ContentsProxy({this.Name,this.ReadOnly,this.UrlKey,this.ClrType,this.Access,this.Properties,this.Children,this.AutogenerateProperties,this.parentId}); ContentsProxy.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Name = json['Name']; ReadOnly = json['ReadOnly']; UrlKey = json['UrlKey']; ClrType = json['ClrType']; Access = json['Access']; Properties = JsonConverters.fromJson(json['Properties'],'List',context!); Children = JsonConverters.fromJson(json['Children'],'List',context!); AutogenerateProperties = json['AutogenerateProperties']; parentId = json['parentId']; return this; } Map toJson() => { 'Name': Name, 'ReadOnly': ReadOnly, 'UrlKey': UrlKey, 'ClrType': ClrType, 'Access': Access, 'Properties': JsonConverters.toJson(Properties,'List',context!), 'Children': JsonConverters.toJson(Children,'List',context!), 'AutogenerateProperties': AutogenerateProperties, 'parentId': parentId }; getTypeName() => "ContentsProxy"; TypeContext? context = _ctx; } class ServiceBaseRequest implements IConvertible { String? Route; String? Name; String? UrlName; bool? Enabled; String? ApiKey; String? AccessControlAllowOrigin; bool? AutogenerateTypes; String? Access; List? Types; String? Protocol; ServiceBaseRequest({this.Route,this.Name,this.UrlName,this.Enabled,this.ApiKey,this.AccessControlAllowOrigin,this.AutogenerateTypes,this.Access,this.Types,this.Protocol}); ServiceBaseRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Route = json['Route']; Name = json['Name']; UrlName = json['UrlName']; Enabled = json['Enabled']; ApiKey = json['ApiKey']; AccessControlAllowOrigin = json['AccessControlAllowOrigin']; AutogenerateTypes = json['AutogenerateTypes']; Access = json['Access']; Types = JsonConverters.fromJson(json['Types'],'List',context!); Protocol = json['Protocol']; return this; } Map toJson() => { 'Route': Route, 'Name': Name, 'UrlName': UrlName, 'Enabled': Enabled, 'ApiKey': ApiKey, 'AccessControlAllowOrigin': AccessControlAllowOrigin, 'AutogenerateTypes': AutogenerateTypes, 'Access': Access, 'Types': JsonConverters.toJson(Types,'List',context!), 'Protocol': Protocol }; getTypeName() => "ServiceBaseRequest"; TypeContext? context = _ctx; } // @Route("/apiservice/createService", "POST") class CreateService extends ServiceBaseRequest implements IConvertible, IPost { CreateService(); CreateService.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "CreateService"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'www.asg.com.au', types: { 'PropertiesProxy': TypeInfo(TypeOf.Class, create:() => PropertiesProxy()), 'ContentsProxy': TypeInfo(TypeOf.Class, create:() => ContentsProxy()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ServiceBaseRequest': TypeInfo(TypeOf.Class, create:() => ServiceBaseRequest()), 'CreateService': TypeInfo(TypeOf.Class, create:() => CreateService()), });