/* Options: Date: 2024-07-03 12:57:10 Version: 8.23 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.bokamera.se //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SendAnInvoiceByEmail.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; abstract class ICompany { String? CompanyId; } // @Route("/eaccounting/invoice/{invoiceId}/email", "POST") class SendAnInvoiceByEmail implements ICompany, IConvertible, IPost { String? InvoiceId; String? Email; List? CcRecipients; String? Subject; String? Message; String? CompanyId; SendAnInvoiceByEmail({this.InvoiceId,this.Email,this.CcRecipients,this.Subject,this.Message,this.CompanyId}); SendAnInvoiceByEmail.fromJson(Map json) { fromMap(json); } fromMap(Map json) { InvoiceId = json['InvoiceId']; Email = json['Email']; CcRecipients = JsonConverters.fromJson(json['CcRecipients'],'List',context!); Subject = json['Subject']; Message = json['Message']; CompanyId = json['CompanyId']; return this; } Map toJson() => { 'InvoiceId': InvoiceId, 'Email': Email, 'CcRecipients': JsonConverters.toJson(CcRecipients,'List',context!), 'Subject': Subject, 'Message': Message, 'CompanyId': CompanyId }; getTypeName() => "SendAnInvoiceByEmail"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.bokamera.se', types: { 'ICompany': TypeInfo(TypeOf.Interface), 'SendAnInvoiceByEmail': TypeInfo(TypeOf.Class, create:() => SendAnInvoiceByEmail()), });