/* Options: Date: 2024-12-15 19:50:23 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: DeliverEmailRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class PostOperationUnTenanted implements IPost { PostOperationUnTenanted(); PostOperationUnTenanted.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; getTypeName() => "PostOperationUnTenanted<$TResponse>"; TypeContext? context = _ctx; } class DeliverEmailResponse implements IConvertible { ResponseStatus? responseStatus; bool? isDelivered; DeliverEmailResponse({this.responseStatus,this.isDelivered}); DeliverEmailResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!); isDelivered = json['isDelivered']; return this; } Map toJson() => { 'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!), 'isDelivered': isDelivered }; getTypeName() => "DeliverEmailResponse"; TypeContext? context = _ctx; } // @Route("/emails/deliver", "POST") class DeliverEmailRequest extends PostOperationUnTenanted implements IReturn, IConvertible { String? message; DeliverEmailRequest({this.message}); DeliverEmailRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { super.fromMap(json); message = json['message']; return this; } Map toJson() => super.toJson()..addAll({ 'message': message }); createResponse() => DeliverEmailResponse(); getResponseTypeName() => "DeliverEmailResponse"; getTypeName() => "DeliverEmailRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'staging_api.billiecart.com.au', types: { 'PostOperationUnTenanted': TypeInfo(TypeOf.AbstractClass), 'DeliverEmailResponse': TypeInfo(TypeOf.Class, create:() => DeliverEmailResponse()), 'DeliverEmailRequest': TypeInfo(TypeOf.Class, create:() => DeliverEmailRequest()), });