/* Options: Date: 2026-08-02 02:12:14 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: DeleteWidgetConfigurationSchemaMigration.* //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", "DELETE") // @ApiResponse(Description="Returned if Version doesn't exist", StatusCode=404) // @ApiResponse(Description="Returned if the current user is not a SuperAdmin", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") class DeleteWidgetConfigurationSchemaMigration implements IReturn, IConvertible, IDelete { /** * The schema version whose migration patch should be cleared. */ // @ApiMember(Description="The schema version whose migration patch should be cleared.", IsRequired=true, ParameterType="path") int Version = 0; DeleteWidgetConfigurationSchemaMigration({this.Version}); DeleteWidgetConfigurationSchemaMigration.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Version = json['Version']; return this; } Map toJson() => { 'Version': Version }; createResponse() => WidgetConfigurationSchemaResponse(); getResponseTypeName() => "WidgetConfigurationSchemaResponse"; getTypeName() => "DeleteWidgetConfigurationSchemaMigration"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bookmore.com', types: { 'WidgetConfigurationSchemaResponse': TypeInfo(TypeOf.Class, create:() => WidgetConfigurationSchemaResponse()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), 'DeleteWidgetConfigurationSchemaMigration': TypeInfo(TypeOf.Class, create:() => DeleteWidgetConfigurationSchemaMigration()), });