/* Options: Date: 2025-08-05 02:30:48 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: ConversionRequestDto.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; enum CalculationState { Inactive, Initializing, Active, ToBeDeleted, Error, Pending, Expired, } enum MatchingOperator { ExactMatch, Contains, StartsWith, EndsWith, UrlStrippedMatch, } class ConditionPart implements IConvertible { int? Id; String? Predicate; bool? IsNegated; MatchingOperator? PredicateOperator; MatchingOperator? ObjectOperator; List? Objects; String? ClientAttribute; String? ContactPropertyId; Map? ObjectMetadata; Map? UrlParameters; ConditionPart({this.Id,this.Predicate,this.IsNegated,this.PredicateOperator,this.ObjectOperator,this.Objects,this.ClientAttribute,this.ContactPropertyId,this.ObjectMetadata,this.UrlParameters}); ConditionPart.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Predicate = json['Predicate']; IsNegated = json['IsNegated']; PredicateOperator = JsonConverters.fromJson(json['PredicateOperator'],'MatchingOperator',context!); ObjectOperator = JsonConverters.fromJson(json['ObjectOperator'],'MatchingOperator',context!); Objects = JsonConverters.fromJson(json['Objects'],'List',context!); ClientAttribute = json['ClientAttribute']; ContactPropertyId = json['ContactPropertyId']; ObjectMetadata = JsonConverters.toStringMap(json['ObjectMetadata']); UrlParameters = JsonConverters.toStringMap(json['UrlParameters']); return this; } Map toJson() => { 'Id': Id, 'Predicate': Predicate, 'IsNegated': IsNegated, 'PredicateOperator': JsonConverters.toJson(PredicateOperator,'MatchingOperator',context!), 'ObjectOperator': JsonConverters.toJson(ObjectOperator,'MatchingOperator',context!), 'Objects': JsonConverters.toJson(Objects,'List',context!), 'ClientAttribute': ClientAttribute, 'ContactPropertyId': ContactPropertyId, 'ObjectMetadata': ObjectMetadata, 'UrlParameters': UrlParameters }; getTypeName() => "ConditionPart"; TypeContext? context = _ctx; } class ConditionExpression implements IConvertible { String? Relation; List? Parts; ConditionExpression({this.Relation,this.Parts}); ConditionExpression.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Relation = json['Relation']; Parts = JsonConverters.fromJson(json['Parts'],'List',context!); return this; } Map toJson() => { 'Relation': Relation, 'Parts': JsonConverters.toJson(Parts,'List',context!) }; getTypeName() => "ConditionExpression"; TypeContext? context = _ctx; } class Conversion implements IConvertible { int? Id; String? Name; CalculationState? State; int? InputDays; DateTime? CreatedOn; DateTime? ModifiedOn; String? CreatedByUserId; String? ModifiedByUserId; ConditionExpression? Definition; ConditionExpression? ClientFilter; bool? CanBeModified; bool? CanBeDeleted; bool? ContentRecommendationsEnabled; DateTime? AttributionCalculatedOn; int? DecisionTreeId; Conversion({this.Id,this.Name,this.State,this.InputDays,this.CreatedOn,this.ModifiedOn,this.CreatedByUserId,this.ModifiedByUserId,this.Definition,this.ClientFilter,this.CanBeModified,this.CanBeDeleted,this.ContentRecommendationsEnabled,this.AttributionCalculatedOn,this.DecisionTreeId}); Conversion.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; State = JsonConverters.fromJson(json['State'],'CalculationState',context!); InputDays = json['InputDays']; CreatedOn = JsonConverters.fromJson(json['CreatedOn'],'DateTime',context!); ModifiedOn = JsonConverters.fromJson(json['ModifiedOn'],'DateTime',context!); CreatedByUserId = json['CreatedByUserId']; ModifiedByUserId = json['ModifiedByUserId']; Definition = JsonConverters.fromJson(json['Definition'],'ConditionExpression',context!); ClientFilter = JsonConverters.fromJson(json['ClientFilter'],'ConditionExpression',context!); CanBeModified = json['CanBeModified']; CanBeDeleted = json['CanBeDeleted']; ContentRecommendationsEnabled = json['ContentRecommendationsEnabled']; AttributionCalculatedOn = JsonConverters.fromJson(json['AttributionCalculatedOn'],'DateTime',context!); DecisionTreeId = json['DecisionTreeId']; return this; } Map toJson() => { 'Id': Id, 'Name': Name, 'State': JsonConverters.toJson(State,'CalculationState',context!), 'InputDays': InputDays, 'CreatedOn': JsonConverters.toJson(CreatedOn,'DateTime',context!), 'ModifiedOn': JsonConverters.toJson(ModifiedOn,'DateTime',context!), 'CreatedByUserId': CreatedByUserId, 'ModifiedByUserId': ModifiedByUserId, 'Definition': JsonConverters.toJson(Definition,'ConditionExpression',context!), 'ClientFilter': JsonConverters.toJson(ClientFilter,'ConditionExpression',context!), 'CanBeModified': CanBeModified, 'CanBeDeleted': CanBeDeleted, 'ContentRecommendationsEnabled': ContentRecommendationsEnabled, 'AttributionCalculatedOn': JsonConverters.toJson(AttributionCalculatedOn,'DateTime',context!), 'DecisionTreeId': DecisionTreeId }; getTypeName() => "Conversion"; TypeContext? context = _ctx; } class ConversionsViewModel implements IConvertible { List? Conversions; ConversionsViewModel({this.Conversions}); ConversionsViewModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Conversions = JsonConverters.fromJson(json['Conversions'],'List',context!); return this; } Map toJson() => { 'Conversions': JsonConverters.toJson(Conversions,'List',context!) }; getTypeName() => "ConversionsViewModel"; TypeContext? context = _ctx; } // @Route("/sitefinity/data-intelligence/conversion", "GET") class ConversionRequestDto implements IReturn, IConvertible, IGet { String? Filter; ConversionRequestDto({this.Filter}); ConversionRequestDto.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Filter = json['Filter']; return this; } Map toJson() => { 'Filter': Filter }; createResponse() => ConversionsViewModel(); getResponseTypeName() => "ConversionsViewModel"; getTypeName() => "ConversionRequestDto"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'www.asg.com.au', types: { 'CalculationState': TypeInfo(TypeOf.Enum, enumValues:CalculationState.values), 'MatchingOperator': TypeInfo(TypeOf.Enum, enumValues:MatchingOperator.values), 'ConditionPart': TypeInfo(TypeOf.Class, create:() => ConditionPart()), 'ConditionExpression': TypeInfo(TypeOf.Class, create:() => ConditionExpression()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'Conversion': TypeInfo(TypeOf.Class, create:() => Conversion()), 'ConversionsViewModel': TypeInfo(TypeOf.Class, create:() => ConversionsViewModel()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ConversionRequestDto': TypeInfo(TypeOf.Class, create:() => ConversionRequestDto()), });