/* Options: Date: 2026-08-02 02:50:01 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bookmore.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SetWidgetConfigurationSchemaMigration.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class WidgetConfigurationSchemaResponse implements IConvertible { int Id = 0; int Version = 0; Map Schema = {}; String? DefaultConfiguration; String? MigrationFromPreviousVersion; DateTime CreatedDate = DateTime(0); ResponseStatus ResponseStatus; WidgetConfigurationSchemaResponse({this.Id,this.Version,this.Schema,this.DefaultConfiguration,this.MigrationFromPreviousVersion,this.CreatedDate,this.ResponseStatus}); WidgetConfigurationSchemaResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Version = json['Version']; Schema = JsonConverters.fromJson(json['Schema'],'Map',context!); DefaultConfiguration = json['DefaultConfiguration']; MigrationFromPreviousVersion = json['MigrationFromPreviousVersion']; CreatedDate = JsonConverters.fromJson(json['CreatedDate'],'DateTime',context!); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'Id': Id, 'Version': Version, 'Schema': JsonConverters.toJson(Schema,'Map',context!), 'DefaultConfiguration': DefaultConfiguration, 'MigrationFromPreviousVersion': MigrationFromPreviousVersion, 'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "WidgetConfigurationSchemaResponse"; TypeContext? context = _ctx; } // @Route("/widget/configurationschema/{Version}/migration", "PUT") // @ApiResponse(Description="Returned if Version doesn't exist, Version-1 doesn't exist, Patch isn't a well-formed RFC 6902 document, references a path unknown to the previous version's schema, or (when the previous version has a DefaultConfiguration) doesn't produce a document that validates against this Version's Schema", StatusCode=400) // @ApiResponse(Description="Returned if the current user is not a SuperAdmin", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") class SetWidgetConfigurationSchemaMigration implements IReturn, IConvertible, IPut { /** * The schema version this patch produces. */ // @ApiMember(Description="The schema version this patch produces.", IsRequired=true, ParameterType="path") int Version = 0; /** * JSON Patch (RFC 6902) document transforming a Version-1 shaped Configuration into a Version-shaped one, as a JSON string. */ // @ApiMember(Description="JSON Patch (RFC 6902) document transforming a Version-1 shaped Configuration into a Version-shaped one, as a JSON string.", IsRequired=true) String Patch = ""; SetWidgetConfigurationSchemaMigration({this.Version,this.Patch}); SetWidgetConfigurationSchemaMigration.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Version = json['Version']; Patch = json['Patch']; return this; } Map toJson() => { 'Version': Version, 'Patch': Patch }; createResponse() => WidgetConfigurationSchemaResponse(); getResponseTypeName() => "WidgetConfigurationSchemaResponse"; getTypeName() => "SetWidgetConfigurationSchemaMigration"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bookmore.com', types: { 'WidgetConfigurationSchemaResponse': TypeInfo(TypeOf.Class, create:() => WidgetConfigurationSchemaResponse()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), 'SetWidgetConfigurationSchemaMigration': TypeInfo(TypeOf.Class, create:() => SetWidgetConfigurationSchemaMigration()), });