/* Options: Date: 2025-12-06 06:50:39 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.1fetch.co.za //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: GetProofOfDelivery.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class ApiServiceRequest implements IServiceRequest, IHasApiKey, IConvertible { /** * The API Key required for authentication */ // @ApiMember(DataType="string", Description="The API Key required for authentication", IsRequired=true) String? ApiKey; ApiServiceRequest({this.ApiKey}); ApiServiceRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ApiKey = json['ApiKey']; return this; } Map toJson() => { 'ApiKey': ApiKey }; getTypeName() => "ApiServiceRequest"; TypeContext? context = _ctx; } abstract class IServiceRequest { } abstract class IHasApiKey { String? ApiKey; } abstract class ILogRequest { } // @Route("/proofofdelivery", "GET") class GetProofOfDelivery extends ApiServiceRequest implements ILogRequest, IConvertible, IGet { /** * The ID of the order */ // @ApiMember(Description="The ID of the order") String? OrderId; /** * The 1F waybill for the order */ // @ApiMember(Description="The 1F waybill for the order") String? Waybill; GetProofOfDelivery({this.OrderId,this.Waybill}); GetProofOfDelivery.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); OrderId = json['OrderId']; Waybill = json['Waybill']; return this; } Map toJson() => super.toJson()..addAll({ 'OrderId': OrderId, 'Waybill': Waybill }); getTypeName() => "GetProofOfDelivery"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.1fetch.co.za', types: { 'ApiServiceRequest': TypeInfo(TypeOf.Class, create:() => ApiServiceRequest()), 'IServiceRequest': TypeInfo(TypeOf.Interface), 'IHasApiKey': TypeInfo(TypeOf.Interface), 'ILogRequest': TypeInfo(TypeOf.Interface), 'GetProofOfDelivery': TypeInfo(TypeOf.Class, create:() => GetProofOfDelivery()), });