/* Options: Date: 2024-11-21 12:08:20 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: GetRebateCodeType.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class RebateCodeTypeResponse implements IConvertible { int? Id; String? Name; String? Description; RebateCodeTypeResponse({this.Id,this.Name,this.Description}); RebateCodeTypeResponse.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() => "RebateCodeTypeResponse"; TypeContext? context = _ctx; } class RebateCodeTypeQueryResponse implements IConvertible { ResponseStatus? ResponseStatus; List? RebateCodeTypeItems; RebateCodeTypeQueryResponse({this.ResponseStatus,this.RebateCodeTypeItems}); RebateCodeTypeQueryResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); RebateCodeTypeItems = JsonConverters.fromJson(json['RebateCodeTypeItems'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'RebateCodeTypeItems': JsonConverters.toJson(RebateCodeTypeItems,'List',context!) }; getTypeName() => "RebateCodeTypeQueryResponse"; TypeContext? context = _ctx; } // @Route("/rebatecodes/types", "GET") // @ApiResponse(Description="You were unauthorized to call this service", StatusCode=401) // @ValidateRequest(Validator="IsAuthenticated") class GetRebateCodeType implements IReturn, IConvertible, IGet { /** * RebateCodeId */ // @ApiMember(Description="RebateCodeId") int? Id; GetRebateCodeType({this.Id}); GetRebateCodeType.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; return this; } Map toJson() => { 'Id': Id }; createResponse() => RebateCodeTypeQueryResponse(); getResponseTypeName() => "RebateCodeTypeQueryResponse"; getTypeName() => "GetRebateCodeType"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'RebateCodeTypeResponse': TypeInfo(TypeOf.Class, create:() => RebateCodeTypeResponse()), 'RebateCodeTypeQueryResponse': TypeInfo(TypeOf.Class, create:() => RebateCodeTypeQueryResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetRebateCodeType': TypeInfo(TypeOf.Class, create:() => GetRebateCodeType()), });