/* Options: Date: 2024-12-15 21:50:12 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: DeleteContributionRequest.* //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 DeleteContributionResponse implements IConvertible { ResponseStatus? responseStatus; DeleteContributionResponse({this.responseStatus}); DeleteContributionResponse.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() => "DeleteContributionResponse"; TypeContext? context = _ctx; } // @Route("/contributions/{Id}", "DELETE") class DeleteContributionRequest extends DeleteOperationTenanted implements IReturn, IConvertible { String? id; DeleteContributionRequest({this.id}); DeleteContributionRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); id = json['id']; return this; } Map toJson() => super.toJson()..addAll({ 'id': id }); createResponse() => DeleteContributionResponse(); getResponseTypeName() => "DeleteContributionResponse"; getTypeName() => "DeleteContributionRequest"; 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), 'DeleteContributionResponse': TypeInfo(TypeOf.Class, create:() => DeleteContributionResponse()), 'DeleteContributionRequest': TypeInfo(TypeOf.Class, create:() => DeleteContributionRequest()), });