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