/* Options: Date: 2024-11-24 13:12:09 Version: 6.111 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://sharpscript.net //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: PreviewHtmlEmail.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class PreviewHtmlEmailResponse implements IConvertible { String? htmlEmail; String? textEmail; PreviewHtmlEmailResponse({this.htmlEmail,this.textEmail}); PreviewHtmlEmailResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { htmlEmail = json['htmlEmail']; textEmail = json['textEmail']; return this; } Map toJson() => { 'htmlEmail': htmlEmail, 'textEmail': textEmail }; getTypeName() => "PreviewHtmlEmailResponse"; TypeContext? context = _ctx; } // @Route("/emails/order-confirmation/preview") class PreviewHtmlEmail implements IReturn, IConvertible, IPost { String? emailTemplate; String? htmlTemplate; String? previewCustomerId; PreviewHtmlEmail({this.emailTemplate,this.htmlTemplate,this.previewCustomerId}); PreviewHtmlEmail.fromJson(Map json) { fromMap(json); } fromMap(Map json) { emailTemplate = json['emailTemplate']; htmlTemplate = json['htmlTemplate']; previewCustomerId = json['previewCustomerId']; return this; } Map toJson() => { 'emailTemplate': emailTemplate, 'htmlTemplate': htmlTemplate, 'previewCustomerId': previewCustomerId }; createResponse() => PreviewHtmlEmailResponse(); getResponseTypeName() => "PreviewHtmlEmailResponse"; getTypeName() => "PreviewHtmlEmail"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'sharpscript.net', types: { 'PreviewHtmlEmailResponse': TypeInfo(TypeOf.Class, create:() => PreviewHtmlEmailResponse()), 'PreviewHtmlEmail': TypeInfo(TypeOf.Class, create:() => PreviewHtmlEmail()), });