/* Options: Date: 2025-12-06 08:41:30 Version: 8.80 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://api.dev.dynamics.trendsic.com //GlobalNamespace: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: AgentEmailCredentialsSendTestRequest.* //ExcludeTypes: //DefaultImports: package:servicestack/servicestack.dart,dart:typed_data */ import 'package:servicestack/servicestack.dart'; import 'dart:typed_data'; class AgentEmailCredentials implements IConvertible { int? Id; int? AgentId; String? EmailAddress; String? Username; String? Password; String? SMTPServer; int? SMTPPort; String? SMTPAuthType; String? POP3Server; int? POP3Port; String? POP3AuthType; String? IMAPServer; int? IMAPPort; DateTime? DateCreated; DateTime? DateModified; AgentEmailCredentials({this.Id,this.AgentId,this.EmailAddress,this.Username,this.Password,this.SMTPServer,this.SMTPPort,this.SMTPAuthType,this.POP3Server,this.POP3Port,this.POP3AuthType,this.IMAPServer,this.IMAPPort,this.DateCreated,this.DateModified}); AgentEmailCredentials.fromJson(Map json) { fromMap(json); } fromMap(Map json) { Id = json['Id']; AgentId = json['AgentId']; EmailAddress = json['EmailAddress']; Username = json['Username']; Password = json['Password']; SMTPServer = json['SMTPServer']; SMTPPort = json['SMTPPort']; SMTPAuthType = json['SMTPAuthType']; POP3Server = json['POP3Server']; POP3Port = json['POP3Port']; POP3AuthType = json['POP3AuthType']; IMAPServer = json['IMAPServer']; IMAPPort = json['IMAPPort']; DateCreated = JsonConverters.fromJson(json['DateCreated'],'DateTime',context!); DateModified = JsonConverters.fromJson(json['DateModified'],'DateTime',context!); return this; } Map toJson() => { 'Id': Id, 'AgentId': AgentId, 'EmailAddress': EmailAddress, 'Username': Username, 'Password': Password, 'SMTPServer': SMTPServer, 'SMTPPort': SMTPPort, 'SMTPAuthType': SMTPAuthType, 'POP3Server': POP3Server, 'POP3Port': POP3Port, 'POP3AuthType': POP3AuthType, 'IMAPServer': IMAPServer, 'IMAPPort': IMAPPort, 'DateCreated': JsonConverters.toJson(DateCreated,'DateTime',context!), 'DateModified': JsonConverters.toJson(DateModified,'DateTime',context!) }; getTypeName() => "AgentEmailCredentials"; TypeContext? context = _ctx; } class AgentEmailCredentialsResponse implements IConvertible { ResponseStatus? ResponseStatus; List? AgentEmailCredentials = []; AgentEmailCredentialsResponse({this.ResponseStatus,this.AgentEmailCredentials}); AgentEmailCredentialsResponse.fromJson(Map json) { fromMap(json); } fromMap(Map json) { ResponseStatus = JsonConverters.fromJson(json['ResponseStatus'],'ResponseStatus',context!); AgentEmailCredentials = JsonConverters.fromJson(json['AgentEmailCredentials'],'List',context!); return this; } Map toJson() => { 'ResponseStatus': JsonConverters.toJson(ResponseStatus,'ResponseStatus',context!), 'AgentEmailCredentials': JsonConverters.toJson(AgentEmailCredentials,'List',context!) }; getTypeName() => "AgentEmailCredentialsResponse"; TypeContext? context = _ctx; } // @Route("/v1/AgentEmailCredentialsSendTest", "POST,OPTIONS") class AgentEmailCredentialsSendTestRequest implements IReturn, IConvertible, IPost { AgentEmailCredentialsSendTestRequest(); AgentEmailCredentialsSendTestRequest.fromJson(Map json) : super(); fromMap(Map json) { return this; } Map toJson() => {}; createResponse() => AgentEmailCredentialsResponse(); getResponseTypeName() => "AgentEmailCredentialsResponse"; getTypeName() => "AgentEmailCredentialsSendTestRequest"; TypeContext? context = _ctx; } TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: { 'AgentEmailCredentials': TypeInfo(TypeOf.Class, create:() => AgentEmailCredentials()), 'AgentEmailCredentialsResponse': TypeInfo(TypeOf.Class, create:() => AgentEmailCredentialsResponse()), 'List': TypeInfo(TypeOf.Class, create:() => []), 'AgentEmailCredentialsSendTestRequest': TypeInfo(TypeOf.Class, create:() => AgentEmailCredentialsSendTestRequest()), });