KeyUsage.fromJson constructor

KeyUsage.fromJson(
  1. Map json_
)

Implementation

KeyUsage.fromJson(core.Map json_)
    : this(
        baseKeyUsage: json_.containsKey('baseKeyUsage')
            ? KeyUsageOptions.fromJson(
                json_['baseKeyUsage'] as core.Map<core.String, core.dynamic>)
            : null,
        extendedKeyUsage: json_.containsKey('extendedKeyUsage')
            ? ExtendedKeyUsageOptions.fromJson(json_['extendedKeyUsage']
                as core.Map<core.String, core.dynamic>)
            : null,
        unknownExtendedKeyUsages:
            json_.containsKey('unknownExtendedKeyUsages')
                ? (json_['unknownExtendedKeyUsages'] as core.List)
                    .map((value) => ObjectId.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
      );