/* Options: Date: 2025-12-06 12:16:13 Version: 8.0 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://sfgboxapi.dev.scadsoftware.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SendGridSingleMailRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart */ import 'package:servicestack/servicestack.dart'; class EmailAddress implements IConvertible { String? name; String? email; EmailAddress({this.name,this.email}); EmailAddress.fromJson(Map json) { fromMap(json); } fromMap(Map json) { name = json['name']; email = json['email']; return this; } Map toJson() => { 'name': name, 'email': email }; getTypeName() => "EmailAddress"; TypeContext? context = _ctx; } // @Route("/sendmail/sendgrid/single") class SendGridSingleMailRequest implements IConvertible, IPost { EmailAddress? to; String? subject; String? templateId; EmailAddress? replyToEmail; EmailAddress? fromEmail; String? plaintText; String? htmlText; String? apiKey; SendGridSingleMailRequest({this.to,this.subject,this.templateId,this.replyToEmail,this.fromEmail,this.plaintText,this.htmlText,this.apiKey}); SendGridSingleMailRequest.fromJson(Map json) { fromMap(json); } fromMap(Map json) { to = JsonConverters.fromJson(json['to'],'EmailAddress',context!); subject = json['subject']; templateId = json['templateId']; replyToEmail = JsonConverters.fromJson(json['replyToEmail'],'EmailAddress',context!); fromEmail = JsonConverters.fromJson(json['fromEmail'],'EmailAddress',context!); plaintText = json['plaintText']; htmlText = json['htmlText']; apiKey = json['apiKey']; return this; } Map toJson() => { 'to': JsonConverters.toJson(to,'EmailAddress',context!), 'subject': subject, 'templateId': templateId, 'replyToEmail': JsonConverters.toJson(replyToEmail,'EmailAddress',context!), 'fromEmail': JsonConverters.toJson(fromEmail,'EmailAddress',context!), 'plaintText': plaintText, 'htmlText': htmlText, 'apiKey': apiKey }; getTypeName() => "SendGridSingleMailRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'sfgboxapi.dev.scadsoftware.com', types: { 'EmailAddress': TypeInfo(TypeOf.Class, create:() => EmailAddress()), 'SendGridSingleMailRequest': TypeInfo(TypeOf.Class, create:() => SendGridSingleMailRequest()), });