ReusableConfigValues.fromJson constructor

ReusableConfigValues.fromJson(
  1. Map _json
)

Implementation

ReusableConfigValues.fromJson(core.Map _json)
    : this(
        additionalExtensions: _json.containsKey('additionalExtensions')
            ? (_json['additionalExtensions'] as core.List)
                .map<X509Extension>((value) => X509Extension.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        aiaOcspServers: _json.containsKey('aiaOcspServers')
            ? (_json['aiaOcspServers'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
        caOptions: _json.containsKey('caOptions')
            ? CaOptions.fromJson(
                _json['caOptions'] as core.Map<core.String, core.dynamic>)
            : null,
        keyUsage: _json.containsKey('keyUsage')
            ? KeyUsage.fromJson(
                _json['keyUsage'] as core.Map<core.String, core.dynamic>)
            : null,
        policyIds: _json.containsKey('policyIds')
            ? (_json['policyIds'] as core.List)
                .map<ObjectId>((value) => ObjectId.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );