SmtpMsa.fromJson constructor

SmtpMsa.fromJson(
  1. Map json_
)

Implementation

SmtpMsa.fromJson(core.Map json_)
    : this(
        host: json_.containsKey('host') ? json_['host'] as core.String : null,
        password: json_.containsKey('password')
            ? json_['password'] as core.String
            : null,
        port: json_.containsKey('port') ? json_['port'] as core.int : null,
        securityMode: json_.containsKey('securityMode')
            ? json_['securityMode'] as core.String
            : null,
        username: json_.containsKey('username')
            ? json_['username'] as core.String
            : null,
      );