toJson method
Implementation
Map<String, dynamic> toJson() {
var json = <String, dynamic>{};
json['mailFrom'] = mailFrom;
json['smtpProtocol'] = smtpProtocol.toShortString();
json['smtpHost'] = smtpHost;
json['smtpPort'] = smtpPort;
json['timeout'] = timeout;
if (enableTls != null) {
json['enableTls'] = enableTls;
}
if (tlsVersion != null) {
json['tlsVersion'] = tlsVersion;
}
if (username != null) {
json['username'] = username;
}
if (password != null) {
json['password'] = password;
}
if (enableProxy != null) {
json['enableProxy'] = enableProxy;
}
if (proxyHost != null) {
json['proxyHost'] = proxyHost;
}
if (proxyPort != null) {
json['proxyPort'] = proxyPort;
}
if (proxyUser != null) {
json['proxyUser'] = proxyUser;
}
if (proxyPassword != null) {
json['proxyPassword'] = proxyPassword;
}
if (enableOauth2 != null) {
json['enableOauth2'] = enableOauth2;
}
if (providerId != null) {
json['providerId'] = providerId;
}
if (clientId != null) {
json['clientId'] = clientId;
}
if (clientSecret != null) {
json['clientSecret'] = clientSecret;
}
if (providerTenantId != null) {
json['providerTenantId'] = providerTenantId;
}
if (authUri != null) {
json['authUri'] = authUri;
}
if (tokenUri != null) {
json['tokenUri'] = tokenUri;
}
if (scope != null) {
json['scope'] = scope;
}
if (redirectUri != null) {
json['redirectUri'] = redirectUri;
}
if (tokenGenerated != null) {
json['tokenGenerated'] = tokenGenerated;
}
return json;
}