/* Options: Date: 2024-06-26 11:37:43 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: GetRebateCodeType.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class RebateCodeTypeItem implements IConvertible { int? Id; String? Name; String? Description; RebateCodeTypeItem({this.Id,this.Name,this.Description}); RebateCodeTypeItem.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() => "RebateCodeTypeItem"; TypeContext? context = _ctx; } class RebateCodeTypeResponse implements IConvertible { ResponseStatus? ResponseStatus; List? RebateCodeTypeItems; RebateCodeTypeResponse({this.ResponseStatus,this.RebateCodeTypeItems}); RebateCodeTypeResponse.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() => "RebateCodeTypeResponse"; 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() => RebateCodeTypeResponse(); getResponseTypeName() => "RebateCodeTypeResponse"; getTypeName() => "GetRebateCodeType"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'testapi.bokamera.se', types: { 'RebateCodeTypeItem': TypeInfo(TypeOf.Class, create:() => RebateCodeTypeItem()), 'RebateCodeTypeResponse': TypeInfo(TypeOf.Class, create:() => RebateCodeTypeResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'GetRebateCodeType': TypeInfo(TypeOf.Class, create:() => GetRebateCodeType()), });