/* Options: Date: 2024-12-03 18:10:53 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: CustomFieldValidationsQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class CustomFieldValidationsQueryResponse implements IConvertible { /** * The validation id */ // @ApiMember(Description="The validation id") int? Id; /** * The validation name */ // @ApiMember(Description="The validation name") String? Name; /** * The valiidation description */ // @ApiMember(Description="The valiidation description") String? Description; /** * The valiidation regular expression */ // @ApiMember(Description="The valiidation regular expression") String? RegExCode; /** * The valiidation error message */ // @ApiMember(Description="The valiidation error message") String? ErrorMessage; CustomFieldValidationsQueryResponse({this.Id,this.Name,this.Description,this.RegExCode,this.ErrorMessage}); CustomFieldValidationsQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; Description = json['Description']; RegExCode = json['RegExCode']; ErrorMessage = json['ErrorMessage']; return this; } Map toJson() => { 'Id': Id, 'Name': Name, 'Description': Description, 'RegExCode': RegExCode, 'ErrorMessage': ErrorMessage }; getTypeName() => "CustomFieldValidationsQueryResponse"; TypeContext? context = _ctx; } // @Route("/customfields/validations", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ApiResponse(Description="You have too low privilegies to call this service", StatusCode=403) // @ValidateRequest(Validator="IsAuthenticated") class CustomFieldValidationsQuery implements IReturn, IConvertible, IGet { CustomFieldValidationsQuery(); CustomFieldValidationsQuery.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => CustomFieldValidationsQueryResponse(); getResponseTypeName() => "CustomFieldValidationsQueryResponse"; getTypeName() => "CustomFieldValidationsQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'CustomFieldValidationsQueryResponse': TypeInfo(TypeOf.Class, create:() => CustomFieldValidationsQueryResponse()), 'CustomFieldValidationsQuery': TypeInfo(TypeOf.Class, create:() => CustomFieldValidationsQuery()), });