MysqlProfile.fromJson constructor

MysqlProfile.fromJson(
  1. Map _json
)

Implementation

MysqlProfile.fromJson(core.Map _json)
    : this(
        hostname: _json.containsKey('hostname')
            ? _json['hostname'] as core.String
            : null,
        password: _json.containsKey('password')
            ? _json['password'] as core.String
            : null,
        port: _json.containsKey('port') ? _json['port'] as core.int : null,
        sslConfig: _json.containsKey('sslConfig')
            ? MysqlSslConfig.fromJson(
                _json['sslConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        username: _json.containsKey('username')
            ? _json['username'] as core.String
            : null,
      );