BlockHeader.fromJson constructor

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

Implementation

factory BlockHeader.fromJson(Map<String, dynamic> json) {
  return BlockHeader(
      rawData: BlockHeaderRaw.fromJson(json["raw_data"]),
      witnessSignature:
          BytesUtils.tryFromHexString(json["witness_signature"]));
}