Digest.fromJson constructor

Digest.fromJson(
  1. String json
)

A necessary factory constructor for creating a new Digest instance from a map. Pass the map to the generated _$DigestFromJson() constructor. The constructor is named after the source class, in this case, Digest.

Implementation

factory Digest.fromJson(String json) =>
    Digest.fromBase58(json, blake2b256DigestSize);