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<ObjectId>((value) => ObjectId.fromJson(
                        value as core.Map<core.String, core.dynamic>))
                    .toList()
                : null,
      );