/* Options: Date: 2024-11-21 11:56:19 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: CompanyTypeQuery.* //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 CompanyType extends BaseModel implements IConvertible { // @Required() String? Name; // @Required() String? Description; DateTime? ModifiedDate; // @Required() int? Id; CompanyType({this.Name,this.Description,this.ModifiedDate,this.Id}); CompanyType.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() => "CompanyType"; TypeContext? context = _ctx; } class CompanyTypeQueryResponse implements IConvertible { int? Id; String? Name; String? Description; CompanyTypeQueryResponse({this.Id,this.Name,this.Description}); CompanyTypeQueryResponse.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() => "CompanyTypeQueryResponse"; TypeContext? context = _ctx; } // @Route("/companies/types", "GET") class CompanyTypeQuery extends QueryDb2 implements IReturn>, IConvertible, IGet { CompanyTypeQuery(); CompanyTypeQuery.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "CompanyTypeQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'BaseModel': TypeInfo(TypeOf.Class, create:() => BaseModel()), 'CompanyType': TypeInfo(TypeOf.Class, create:() => CompanyType()), 'CompanyTypeQueryResponse': TypeInfo(TypeOf.Class, create:() => CompanyTypeQueryResponse()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'CompanyTypeQuery': TypeInfo(TypeOf.Class, create:() => CompanyTypeQuery()), 'List': TypeInfo(TypeOf.Class, create:() => []), });