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