OracleProfile.fromJson constructor

OracleProfile.fromJson(
  1. Map _json
)

Implementation

OracleProfile.fromJson(core.Map _json)
    : this(
        connectionAttributes: _json.containsKey('connectionAttributes')
            ? (_json['connectionAttributes']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, item) => core.MapEntry(
                  key,
                  item as core.String,
                ),
              )
            : null,
        databaseService: _json.containsKey('databaseService')
            ? _json['databaseService'] as core.String
            : null,
        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,
        username: _json.containsKey('username')
            ? _json['username'] as core.String
            : null,
      );