/* Options: Date: 2025-08-05 02:52:20 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: PersonaRequestDto.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum PersonaState { Inactive, Active, ToBeDeleted, } class Persona implements IConvertible { int? Id; String? Name; String? Description; String? PhotoUrl; PersonaState? State; int? Threshold; DateTime? CreatedOn; String? CreatedByUserId; DateTime? ModifiedOn; String? ModifiedByUserId; DateTime? ToBeReinitializedAt; Persona({this.Id,this.Name,this.Description,this.PhotoUrl,this.State,this.Threshold,this.CreatedOn,this.CreatedByUserId,this.ModifiedOn,this.ModifiedByUserId,this.ToBeReinitializedAt}); Persona.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; Description = json['Description']; PhotoUrl = json['PhotoUrl']; State = JsonConverters.fromJson(json['State'],'PersonaState',context!); Threshold = json['Threshold']; CreatedOn = JsonConverters.fromJson(json['CreatedOn'],'DateTime',context!); CreatedByUserId = json['CreatedByUserId']; ModifiedOn = JsonConverters.fromJson(json['ModifiedOn'],'DateTime',context!); ModifiedByUserId = json['ModifiedByUserId']; ToBeReinitializedAt = JsonConverters.fromJson(json['ToBeReinitializedAt'],'DateTime',context!); return this; } Map toJson() => { 'Id': Id, 'Name': Name, 'Description': Description, 'PhotoUrl': PhotoUrl, 'State': JsonConverters.toJson(State,'PersonaState',context!), 'Threshold': Threshold, 'CreatedOn': JsonConverters.toJson(CreatedOn,'DateTime',context!), 'CreatedByUserId': CreatedByUserId, 'ModifiedOn': JsonConverters.toJson(ModifiedOn,'DateTime',context!), 'ModifiedByUserId': ModifiedByUserId, 'ToBeReinitializedAt': JsonConverters.toJson(ToBeReinitializedAt,'DateTime',context!) }; getTypeName() => "Persona"; TypeContext? context = _ctx; } class PersonaListViewModel implements IConvertible { List? Personаs; String? DecAppUrl; PersonaListViewModel({this.Personаs,this.DecAppUrl}); PersonaListViewModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Personаs = JsonConverters.fromJson(json['Personаs'],'List',context!); DecAppUrl = json['DecAppUrl']; return this; } Map toJson() => { 'Personаs': JsonConverters.toJson(Personаs,'List',context!), 'DecAppUrl': DecAppUrl }; getTypeName() => "PersonaListViewModel"; TypeContext? context = _ctx; } // @Route("/sitefinity/data-intelligence/persona", "GET") class PersonaRequestDto implements IReturn, IConvertible, IGet { String? Filter; PersonaRequestDto({this.Filter}); PersonaRequestDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Filter = json['Filter']; return this; } Map toJson() => { 'Filter': Filter }; createResponse() => PersonaListViewModel(); getResponseTypeName() => "PersonaListViewModel"; getTypeName() => "PersonaRequestDto"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'www.asg.com.au', types: { 'PersonaState': TypeInfo(TypeOf.Enum, enumValues:PersonaState.values), 'Persona': TypeInfo(TypeOf.Class, create:() => Persona()), 'PersonaListViewModel': TypeInfo(TypeOf.Class, create:() => PersonaListViewModel()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'PersonaRequestDto': TypeInfo(TypeOf.Class, create:() => PersonaRequestDto()), });