/* Options: Date: 2025-08-05 02:31:34 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: ContainerInfoMessage.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class LifecycleStatusModel implements IConvertible { String? DisplayStatus; bool? IsAdmin; bool? IsEditable; bool? IsStatusEditable; bool? IsLocked; bool? IsPublished; bool? IsLockedByMe; String? LockedByUsername; String? WorkflowStatus; LifecycleStatusModel({this.DisplayStatus,this.IsAdmin,this.IsEditable,this.IsStatusEditable,this.IsLocked,this.IsPublished,this.IsLockedByMe,this.LockedByUsername,this.WorkflowStatus}); LifecycleStatusModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { DisplayStatus = json['DisplayStatus']; IsAdmin = json['IsAdmin']; IsEditable = json['IsEditable']; IsStatusEditable = json['IsStatusEditable']; IsLocked = json['IsLocked']; IsPublished = json['IsPublished']; IsLockedByMe = json['IsLockedByMe']; LockedByUsername = json['LockedByUsername']; WorkflowStatus = json['WorkflowStatus']; return this; } Map toJson() => { 'DisplayStatus': DisplayStatus, 'IsAdmin': IsAdmin, 'IsEditable': IsEditable, 'IsStatusEditable': IsStatusEditable, 'IsLocked': IsLocked, 'IsPublished': IsPublished, 'IsLockedByMe': IsLockedByMe, 'LockedByUsername': LockedByUsername, 'WorkflowStatus': WorkflowStatus }; getTypeName() => "LifecycleStatusModel"; TypeContext? context = _ctx; } class FieldModel implements IConvertible { String? Name; String? Required; String? MinDate; String? MaxDate; int? MinLength; int? MaxLength; String? Pattern; dynamic? MinValue; dynamic? MaxValue; String? RequiredViolationMessage; String? MinLengthViolationMessage; String? MaxLengthViolationMessage; FieldModel({this.Name,this.Required,this.MinDate,this.MaxDate,this.MinLength,this.MaxLength,this.Pattern,this.MinValue,this.MaxValue,this.RequiredViolationMessage,this.MinLengthViolationMessage,this.MaxLengthViolationMessage}); FieldModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Name = json['Name']; Required = json['Required']; MinDate = json['MinDate']; MaxDate = json['MaxDate']; MinLength = json['MinLength']; MaxLength = json['MaxLength']; Pattern = json['Pattern']; MinValue = JsonConverters.fromJson(json['MinValue'],'dynamic',context!); MaxValue = JsonConverters.fromJson(json['MaxValue'],'dynamic',context!); RequiredViolationMessage = json['RequiredViolationMessage']; MinLengthViolationMessage = json['MinLengthViolationMessage']; MaxLengthViolationMessage = json['MaxLengthViolationMessage']; return this; } Map toJson() => { 'Name': Name, 'Required': Required, 'MinDate': MinDate, 'MaxDate': MaxDate, 'MinLength': MinLength, 'MaxLength': MaxLength, 'Pattern': Pattern, 'MinValue': JsonConverters.toJson(MinValue,'dynamic',context!), 'MaxValue': JsonConverters.toJson(MaxValue,'dynamic',context!), 'RequiredViolationMessage': RequiredViolationMessage, 'MinLengthViolationMessage': MinLengthViolationMessage, 'MaxLengthViolationMessage': MaxLengthViolationMessage }; getTypeName() => "FieldModel"; TypeContext? context = _ctx; } class ContainerInfoModel implements IConvertible { String? ItemId; String? ItemType; String? DisplayType; String? Provider; LifecycleStatusModel? ItemStatus; bool? IsPageControl; String? DetailsViewUrl; List? Fields; ContainerInfoModel({this.ItemId,this.ItemType,this.DisplayType,this.Provider,this.ItemStatus,this.IsPageControl,this.DetailsViewUrl,this.Fields}); ContainerInfoModel.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ItemId = json['ItemId']; ItemType = json['ItemType']; DisplayType = json['DisplayType']; Provider = json['Provider']; ItemStatus = JsonConverters.fromJson(json['ItemStatus'],'LifecycleStatusModel',context!); IsPageControl = json['IsPageControl']; DetailsViewUrl = json['DetailsViewUrl']; Fields = JsonConverters.fromJson(json['Fields'],'List',context!); return this; } Map toJson() => { 'ItemId': ItemId, 'ItemType': ItemType, 'DisplayType': DisplayType, 'Provider': Provider, 'ItemStatus': JsonConverters.toJson(ItemStatus,'LifecycleStatusModel',context!), 'IsPageControl': IsPageControl, 'DetailsViewUrl': DetailsViewUrl, 'Fields': JsonConverters.toJson(Fields,'List',context!) }; getTypeName() => "ContainerInfoModel"; TypeContext? context = _ctx; } // @Route("/sitefinity/inlineediting/containersInfo", "POST") class ContainerInfoMessage implements IConvertible, IPost { String? PageId; String? PageTitle; List? ContainersInfo; ContainerInfoMessage({this.PageId,this.PageTitle,this.ContainersInfo}); ContainerInfoMessage.fromJson(Map json) { fromMap(json); } fromMap(Map json) { PageId = json['PageId']; PageTitle = json['PageTitle']; ContainersInfo = JsonConverters.fromJson(json['ContainersInfo'],'List',context!); return this; } Map toJson() => { 'PageId': PageId, 'PageTitle': PageTitle, 'ContainersInfo': JsonConverters.toJson(ContainersInfo,'List',context!) }; getTypeName() => "ContainerInfoMessage"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'www.asg.com.au', types: { 'LifecycleStatusModel': TypeInfo(TypeOf.Class, create:() => LifecycleStatusModel()), 'FieldModel': TypeInfo(TypeOf.Class, create:() => FieldModel()), 'ContainerInfoModel': TypeInfo(TypeOf.Class, create:() => ContainerInfoModel()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'ContainerInfoMessage': TypeInfo(TypeOf.Class, create:() => ContainerInfoMessage()), 'List': TypeInfo(TypeOf.Class, create:() => []), });