CertificateAuthorityPolicy.fromJson constructor

CertificateAuthorityPolicy.fromJson(
  1. Map _json
)

Implementation

CertificateAuthorityPolicy.fromJson(core.Map _json)
    : this(
        allowedCommonNames: _json.containsKey('allowedCommonNames')
            ? (_json['allowedCommonNames'] as core.List)
                .map<core.String>((value) => value as core.String)
                .toList()
            : null,
        allowedConfigList: _json.containsKey('allowedConfigList')
            ? AllowedConfigList.fromJson(_json['allowedConfigList']
                as core.Map<core.String, core.dynamic>)
            : null,
        allowedIssuanceModes: _json.containsKey('allowedIssuanceModes')
            ? IssuanceModes.fromJson(_json['allowedIssuanceModes']
                as core.Map<core.String, core.dynamic>)
            : null,
        allowedLocationsAndOrganizations:
            _json.containsKey('allowedLocationsAndOrganizations')
                ? (_json['allowedLocationsAndOrganizations'] as core.List)
                    .map<Subject>((value) => Subject.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
        allowedSans: _json.containsKey('allowedSans')
            ? AllowedSubjectAltNames.fromJson(
                _json['allowedSans'] as core.Map<core.String, core.dynamic>)
            : null,
        maximumLifetime: _json.containsKey('maximumLifetime')
            ? _json['maximumLifetime'] as core.String
            : null,
        overwriteConfigValues: _json.containsKey('overwriteConfigValues')
            ? ReusableConfigWrapper.fromJson(_json['overwriteConfigValues']
                as core.Map<core.String, core.dynamic>)
            : null,
      );