/* Options: Date: 2024-11-21 12:00:31 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: SupportCaseTypeQuery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class BaseModel implements IConvertible { BaseModel(); BaseModel.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "BaseModel"; TypeContext? context = _ctx; } class CaseType extends BaseModel implements IConvertible { // @Required() String? Name; // @Required() String? Description; DateTime? ModifiedDate; int? Id; CaseType({this.Name,this.Description,this.ModifiedDate,this.Id}); CaseType.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Name = json['Name']; Description = json['Description']; ModifiedDate = JsonConverters.fromJson(json['ModifiedDate'],'DateTime',context!); Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'Name': Name, 'Description': Description, 'ModifiedDate': JsonConverters.toJson(ModifiedDate,'DateTime',context!), 'Id': Id }); getTypeName() => "CaseType"; TypeContext? context = _ctx; } class SupportCaseTypeResponse implements IConvertible { /** * The type id */ // @ApiMember(Description="The type id") int? Id; /** * The type name */ // @ApiMember(Description="The type name") String? Name; /** * The type description */ // @ApiMember(Description="The type description") String? Description; SupportCaseTypeResponse({this.Id,this.Name,this.Description}); SupportCaseTypeResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; Description = json['Description']; return this; } Map toJson() => { 'Id': Id, 'Name': Name, 'Description': Description }; getTypeName() => "SupportCaseTypeResponse"; TypeContext? context = _ctx; } // @Route("/support/cases/types", "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 SupportCaseTypeQuery extends QueryDb2 implements IReturn>, IConvertible, IGet { SupportCaseTypeQuery(); SupportCaseTypeQuery.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "SupportCaseTypeQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'BaseModel': TypeInfo(TypeOf.Class, create:() => BaseModel()), 'CaseType': TypeInfo(TypeOf.Class, create:() => CaseType()), 'SupportCaseTypeResponse': TypeInfo(TypeOf.Class, create:() => SupportCaseTypeResponse()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'SupportCaseTypeQuery': TypeInfo(TypeOf.Class, create:() => SupportCaseTypeQuery()), 'List': TypeInfo(TypeOf.Class, create:() => []), });