TrustStore.fromJson constructor

TrustStore.fromJson(
  1. Map json_
)

Implementation

TrustStore.fromJson(core.Map json_)
    : this(
        intermediateCas: json_.containsKey('intermediateCas')
            ? (json_['intermediateCas'] as core.List)
                .map((value) => IntermediateCA.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        trustAnchors: json_.containsKey('trustAnchors')
            ? (json_['trustAnchors'] as core.List)
                .map((value) => TrustAnchor.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );