/* Options: Date: 2026-09-09 11:06:14 Version: 10.08 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://services.acct.2service.nl //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetShipments.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class AuthenticatedRequest { /** * Session token received from successful authentication. */ // @ApiMember(Description="Session token received from successful authentication.", IsRequired=true, ParameterType="query") String SessionToken = ""; AuthenticatedRequest({this.SessionToken=""}); AuthenticatedRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { SessionToken = json['SessionToken'] ?? ""; return this; } Map toJson() => { 'SessionToken': SessionToken }; getTypeName() => "AuthenticatedRequest"; TypeContext? context = _ctx; } class OperationResult implements IConvertible { /** * Specifies if the operation was successful. */ // @ApiMember(Description="Specifies if the operation was successful.", ParameterType="model") bool? IsSuccessful; /** * States error message in case of unsuccessful operation. */ // @ApiMember(Description="States error message in case of unsuccessful operation.", ParameterType="model") String? ErrorMessage; OperationResult({this.IsSuccessful,this.ErrorMessage}); OperationResult.fromJson(Map json) { fromMap(json); } fromMap(Map json) { IsSuccessful = json['IsSuccessful']; ErrorMessage = json['ErrorMessage']; return this; } Map toJson() => { 'IsSuccessful': IsSuccessful, 'ErrorMessage': ErrorMessage }; getTypeName() => "OperationResult"; TypeContext? context = _ctx; } class OperationResult1 extends OperationResult implements IConvertible { /** * Result value */ // @ApiMember(Description="Result value", ParameterType="model") T? Result; OperationResult1({this.Result}); OperationResult1.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); Result = JsonConverters.fromJson(json['Result'],'T',context!); return this; } Map toJson() => super.toJson()..addAll({ 'Result': JsonConverters.toJson(Result,'T',context!) }); getTypeName() => "OperationResult<$T>"; TypeContext? context = _ctx; } class ShipmentsResponse extends OperationResult1> implements IConvertible { ShipmentsResponse(); ShipmentsResponse.fromJson(Map json) : super.fromJson(json); fromMap(Map json) { super.fromMap(json); return this; } Map toJson() => super.toJson(); getTypeName() => "ShipmentsResponse"; TypeContext? context = _ctx; } // @Route("/dealers/shipments", "GET") class GetShipments extends AuthenticatedRequest implements IReturn, IConvertible, IGet { /** * Start of date range to retrieve shipments for. */ // @ApiMember(Description="Start of date range to retrieve shipments for.", IsRequired=true) DateTime? DateFrom; /** * End of date range to retrieve shipments for. */ // @ApiMember(Description="End of date range to retrieve shipments for.") DateTime? DateTo; GetShipments({this.DateFrom,this.DateTo}); GetShipments.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); DateFrom = JsonConverters.fromJson(json['DateFrom'],'DateTime',context!) ?? DateTime(0); DateTo = JsonConverters.fromJson(json['DateTo'],'DateTime',context!); return this; } Map toJson() => super.toJson()..addAll({ 'DateFrom': JsonConverters.toJson(DateFrom,'DateTime',context!), 'DateTo': JsonConverters.toJson(DateTo,'DateTime',context!) }); createResponse() => ShipmentsResponse(); getResponseTypeName() => "ShipmentsResponse"; getTypeName() => "GetShipments"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'services.acct.2service.nl', types: { 'AuthenticatedRequest': TypeInfo(TypeOf.AbstractClass), 'OperationResult': TypeInfo(TypeOf.Class, create:() => OperationResult()), 'OperationResult1': TypeInfo(TypeOf.GenericDef,create:() => OperationResult1()), 'ShipmentsResponse': TypeInfo(TypeOf.Class, create:() => ShipmentsResponse()), 'GetShipments': TypeInfo(TypeOf.Class, create:() => GetShipments()), });