/* Options: Date: 2026-05-14 02:40:40 Version: 10.05 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CreateWidgetConfigurationSchema.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class WidgetConfigurationSchemaResponse implements IConvertible { int Id = 0; int Version = 0; Map Schema = {}; DateTime CreatedDate = DateTime(0); ResponseStatus ResponseStatus; WidgetConfigurationSchemaResponse({this.Id,this.Version,this.Schema,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!); 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!), 'CreatedDate': JsonConverters.toJson(CreatedDate,'DateTime',context!), 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }; getTypeName() => "WidgetConfigurationSchemaResponse"; TypeContext? context = _ctx; } // @Route("/widget/configurationschema", "POST") // @ApiResponse(Description="Returned if there is a validation error or the schema is invalid JSON Schema", StatusCode=400) // @ApiResponse(Description="Returned if a schema with this Version already exists", StatusCode=409) // @ApiResponse(Description="Returned if the current user is not a SuperAdmin", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") class CreateWidgetConfigurationSchema implements IReturn, IConvertible, IPost { /** * The schema version. Must be unique. */ // @ApiMember(Description="The schema version. Must be unique.", IsRequired=true) int Version = 0; /** * The JSON Schema document. */ // @ApiMember(Description="The JSON Schema document.", IsRequired=true) Map Schema = {}; CreateWidgetConfigurationSchema({this.Version,this.Schema}); CreateWidgetConfigurationSchema.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Version = json['Version']; Schema = JsonConverters.fromJson(json['Schema'],'Map',context!); return this; } Map toJson() => { 'Version': Version, 'Schema': JsonConverters.toJson(Schema,'Map',context!) }; createResponse() => WidgetConfigurationSchemaResponse(); getResponseTypeName() => "WidgetConfigurationSchemaResponse"; getTypeName() => "CreateWidgetConfigurationSchema"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'testapi.bokamera.se', types: { 'WidgetConfigurationSchemaResponse': TypeInfo(TypeOf.Class, create:() => WidgetConfigurationSchemaResponse()), 'Map': TypeInfo(TypeOf.Class, create:() => Map()), 'CreateWidgetConfigurationSchema': TypeInfo(TypeOf.Class, create:() => CreateWidgetConfigurationSchema()), });