X509Parameters.fromJson constructor

X509Parameters.fromJson(
  1. Map json_
)

Implementation

X509Parameters.fromJson(core.Map json_)
    : this(
        additionalExtensions: json_.containsKey('additionalExtensions')
            ? (json_['additionalExtensions'] as core.List)
                .map((value) => X509Extension.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        aiaOcspServers: json_.containsKey('aiaOcspServers')
            ? (json_['aiaOcspServers'] as core.List)
                .map((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,
        nameConstraints: json_.containsKey('nameConstraints')
            ? NameConstraints.fromJson(json_['nameConstraints']
                as core.Map<core.String, core.dynamic>)
            : null,
        policyIds: json_.containsKey('policyIds')
            ? (json_['policyIds'] as core.List)
                .map((value) => ObjectId.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );