/* Options: Date: 2024-11-21 13:42:22 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: LicenseInformationTypeQuery.* //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 LicenseInformationType extends BaseModel implements IConvertible { int? Id; // @Required() String? Name; LicenseInformationType({this.Id,this.Name}); LicenseInformationType.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Id = json['Id']; Name = json['Name']; return this; } Map toJson() => super.toJson()..addAll({ 'Id': Id, 'Name': Name }); getTypeName() => "LicenseInformationType"; TypeContext? context = _ctx; } class LicenseInformationTypeQueryResponse implements IConvertible { /** * The license information type id */ // @ApiMember(Description="The license information type id") int? Id; /** * The license information type name */ // @ApiMember(Description="The license information type name") String? Name; LicenseInformationTypeQueryResponse({this.Id,this.Name}); LicenseInformationTypeQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; Name = json['Name']; return this; } Map toJson() => { 'Id': Id, 'Name': Name }; getTypeName() => "LicenseInformationTypeQueryResponse"; TypeContext? context = _ctx; } // @Route("/licenses/informationtypes/", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) class LicenseInformationTypeQuery extends QueryDb2 implements IReturn>, IConvertible, IGet { ResponseStatus? ResponseStatus; LicenseInformationTypeQuery({this.ResponseStatus}); LicenseInformationTypeQuery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); return this; } Map toJson() => super.toJson()..addAll({ 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!) }); createResponse() => QueryResponse(); getResponseTypeName() => "QueryResponse"; getTypeName() => "LicenseInformationTypeQuery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'BaseModel': TypeInfo(TypeOf.Class, create:() => BaseModel()), 'LicenseInformationType': TypeInfo(TypeOf.Class, create:() => LicenseInformationType()), 'LicenseInformationTypeQueryResponse': TypeInfo(TypeOf.Class, create:() => LicenseInformationTypeQueryResponse()), 'QueryResponse': TypeInfo(TypeOf.Class, create:() => QueryResponse()), 'LicenseInformationTypeQuery': TypeInfo(TypeOf.Class, create:() => LicenseInformationTypeQuery()), 'List': TypeInfo(TypeOf.Class, create:() => []), });