Digest.fromJson constructor

Digest.fromJson(
  1. Map json_
)

Implementation

Digest.fromJson(core.Map json_)
    : this(
        sha256: json_.containsKey('sha256')
            ? json_['sha256'] as core.String
            : null,
        sha384: json_.containsKey('sha384')
            ? json_['sha384'] as core.String
            : null,
        sha512: json_.containsKey('sha512')
            ? json_['sha512'] as core.String
            : null,
      );