/* Options: Date: 2024-06-02 09:23:17 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://testapi.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SuperAdminSupportCaseAreaQuery.* //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 CaseArea extends BaseModel implements IConvertible { // @Required() String? Name; // @Required() String? Description; DateTime? ModifiedDate; int? Id; CaseArea({this.Name,this.Description,this.ModifiedDate,this.Id}); CaseArea.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() => "CaseArea"; TypeContext? context = _ctx; } class SupportCaseAreaResponse implements IConvertible { /** * The area id */ // @ApiMember(Description="The area id") int? Id; /** * The area name */ // @ApiMember(Description="The area name") String? Name; /** * The area description */ // @ApiMember(Description="The area description") String? Description; SupportCaseAreaResponse({this.Id,this.Name,this.Description}); SupportCaseAreaResponse.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() => "SupportCaseAreaResponse"; TypeContext? context = _ctx; } // @Route("/superadmin/support/cases/areas", "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 SuperAdminSupportCaseAreaQuery extends QueryDb2 implements IReturn>, IConvertible, IGet { SuperAdminSupportCaseAreaQuery(); SuperAdminSupportCaseAreaQuery.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "SuperAdminSupportCaseAreaQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'testapi.bokamera.se', types: { 'BaseModel': TypeInfo(TypeOf.Class, create:() => BaseModel()), 'CaseArea': TypeInfo(TypeOf.Class, create:() => CaseArea()), 'SupportCaseAreaResponse': TypeInfo(TypeOf.Class, create:() => SupportCaseAreaResponse()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'SuperAdminSupportCaseAreaQuery': TypeInfo(TypeOf.Class, create:() => SuperAdminSupportCaseAreaQuery()), 'List': TypeInfo(TypeOf.Class, create:() => []), });