/* Options: Date: 2024-07-03 13:13:16 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: PriceViewTypeQuery.* //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 PriceViewType extends BaseModel implements IConvertible { // @Required() String? Name; // @Required() String? Description; int? Id; PriceViewType({this.Name,this.Description,this.Id}); PriceViewType.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Name = json['Name']; Description = json['Description']; Id = json['Id']; return this; } Map toJson() => super.toJson()..addAll({ 'Name': Name, 'Description': Description, 'Id': Id }); getTypeName() => "PriceViewType"; TypeContext? context = _ctx; } class PriceViewTypeQueryResponse implements IConvertible { int? Id; String? Name; String? Description; PriceViewTypeQueryResponse({this.Id,this.Name,this.Description}); PriceViewTypeQueryResponse.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() => "PriceViewTypeQueryResponse"; TypeContext? context = _ctx; } // @Route("/services/priceviewtypes", "GET") class PriceViewTypeQuery extends QueryDb2 implements IReturn>, IConvertible, IGet { PriceViewTypeQuery(); PriceViewTypeQuery.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "PriceViewTypeQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'BaseModel': TypeInfo(TypeOf.Class, create:() => BaseModel()), 'PriceViewType': TypeInfo(TypeOf.Class, create:() => PriceViewType()), 'PriceViewTypeQueryResponse': TypeInfo(TypeOf.Class, create:() => PriceViewTypeQueryResponse()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'PriceViewTypeQuery': TypeInfo(TypeOf.Class, create:() => PriceViewTypeQuery()), 'List': TypeInfo(TypeOf.Class, create:() => []), });