HiveMetastoreConfig.fromJson constructor

HiveMetastoreConfig.fromJson(
  1. Map json_
)

Implementation

HiveMetastoreConfig.fromJson(core.Map json_)
    : this(
        auxiliaryVersions: json_.containsKey('auxiliaryVersions')
            ? (json_['auxiliaryVersions']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  AuxiliaryVersionConfig.fromJson(
                      value as core.Map<core.String, core.dynamic>),
                ),
              )
            : null,
        configOverrides: json_.containsKey('configOverrides')
            ? (json_['configOverrides']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value 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,
      );