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