/* Options: Date: 2025-05-04 23:43:51 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://team.evovoice.io //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: SendTestEmail.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class EmailAccount implements IConvertible { String? id; String? server; String? userName; int? port; String? emailAddress; String? displayName; String? password; EmailAccount({this.id,this.server,this.userName,this.port,this.emailAddress,this.displayName,this.password}); EmailAccount.fromJson(Map json) { fromMap(json); } fromMap(Map json) { id = json['id']; server = json['server']; userName = json['userName']; port = json['port']; emailAddress = json['emailAddress']; displayName = json['displayName']; password = json['password']; return this; } Map toJson() => { 'id': id, 'server': server, 'userName': userName, 'port': port, 'emailAddress': emailAddress, 'displayName': displayName, 'password': password }; getTypeName() => "EmailAccount"; TypeContext? context = _ctx; } /** * Send a test email from the specified account */ // @Route("/settings/test-email", "POST") // @Api(Description="Send a test email from the specified account") class SendTestEmail implements IReturnVoid, IPost, IConvertible { /** * The email account to send from */ // @ApiMember(Description="The email account to send from") EmailAccount? account; /** * The user to send to */ // @ApiMember(Description="The user to send to") String? emailAddress; SendTestEmail({this.account,this.emailAddress}); SendTestEmail.fromJson(Map json) { fromMap(json); } fromMap(Map json) { account = JsonConverters.fromJson(json['account'],'EmailAccount',context!); emailAddress = json['emailAddress']; return this; } Map toJson() => { 'account': JsonConverters.toJson(account,'EmailAccount',context!), 'emailAddress': emailAddress }; createResponse() {} getTypeName() => "SendTestEmail"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'team.evovoice.io', types: { 'EmailAccount': TypeInfo(TypeOf.Class, create:() => EmailAccount()), 'SendTestEmail': TypeInfo(TypeOf.Class, create:() => SendTestEmail()), });