/* Options: Date: 2024-12-15 19:32:25 Version: 6.10 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://staging-api.billiecart.com.au //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: DeletePaymentRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ITenantedRequest { String? organisationId; } abstract class DeleteOperationUnTenanted implements IDelete { DeleteOperationUnTenanted(); DeleteOperationUnTenanted.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "DeleteOperationUnTenanted<$TResponse>"; TypeContext? context = _ctx; } abstract class DeleteOperationTenanted extends DeleteOperationUnTenanted implements ITenantedRequest { String? organisationId; DeleteOperationTenanted({this.organisationId}); DeleteOperationTenanted.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); organisationId = json['organisationId']; return this; } Map toJson() => super.toJson()..addAll({ 'organisationId': organisationId }); getTypeName() => "DeleteOperationTenanted<$TResponse>"; TypeContext? context = _ctx; } class DeletePaymentResponse implements IConvertible { ResponseStatus? responseStatus; DeletePaymentResponse({this.responseStatus}); DeletePaymentResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!) }; getTypeName() => "DeletePaymentResponse"; TypeContext? context = _ctx; } // @Route("/payments/{Id}", "DELETE") class DeletePaymentRequest extends DeleteOperationTenanted implements IReturn, IConvertible { String? id; DeletePaymentRequest({this.id}); DeletePaymentRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id }); createResponse() => DeletePaymentResponse(); getResponseTypeName() => "DeletePaymentResponse"; getTypeName() => "DeletePaymentRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'staging_api.billiecart.com.au', types: { 'ITenantedRequest': TypeInfo(TypeOf.Interface), 'DeleteOperationUnTenanted': TypeInfo(TypeOf.AbstractClass), 'DeleteOperationTenanted': TypeInfo(TypeOf.AbstractClass), 'DeletePaymentResponse': TypeInfo(TypeOf.Class, create:() => DeletePaymentResponse()), 'DeletePaymentRequest': TypeInfo(TypeOf.Class, create:() => DeletePaymentRequest()), });