IssuancePolicy.fromJson constructor

IssuancePolicy.fromJson(
  1. Map json_
)

Implementation

IssuancePolicy.fromJson(core.Map json_)
    : this(
        allowedIssuanceModes: json_.containsKey('allowedIssuanceModes')
            ? IssuanceModes.fromJson(json_['allowedIssuanceModes']
                as core.Map<core.String, core.dynamic>)
            : null,
        allowedKeyTypes: json_.containsKey('allowedKeyTypes')
            ? (json_['allowedKeyTypes'] as core.List)
                .map((value) => AllowedKeyType.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        baselineValues: json_.containsKey('baselineValues')
            ? X509Parameters.fromJson(json_['baselineValues']
                as core.Map<core.String, core.dynamic>)
            : null,
        identityConstraints: json_.containsKey('identityConstraints')
            ? CertificateIdentityConstraints.fromJson(
                json_['identityConstraints']
                    as core.Map<core.String, core.dynamic>)
            : null,
        maximumLifetime: json_.containsKey('maximumLifetime')
            ? json_['maximumLifetime'] as core.String
            : null,
        passthroughExtensions: json_.containsKey('passthroughExtensions')
            ? CertificateExtensionConstraints.fromJson(
                json_['passthroughExtensions']
                    as core.Map<core.String, core.dynamic>)
            : null,
      );