HiveMetastoreConfig.fromJson constructor

HiveMetastoreConfig.fromJson(
  1. Map _json
)

Implementation

HiveMetastoreConfig.fromJson(core.Map _json)
    : this(
        configOverrides: _json.containsKey('configOverrides')
            ? (_json['configOverrides']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, item) => core.MapEntry(
                  key,
                  item as core.String,
                ),
              )
            : null,
        endpointProtocol: _json.containsKey('endpointProtocol')
            ? _json['endpointProtocol'] as core.String
            : null,
        kerberosConfig: _json.containsKey('kerberosConfig')
            ? KerberosConfig.fromJson(_json['kerberosConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        version: _json.containsKey('version')
            ? _json['version'] as core.String
            : null,
      );