Constitution.fromJson constructor

Constitution.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory Constitution.fromJson(Map<String, dynamic> json) {
  return Constitution(
      anchor: Anchor.fromJson(json["anchor"]),
      scriptHash: json["script_hash"] == null
          ? null
          : ScriptHash.fromHex(json["script_hash"]));
}