MerkleProof.fromJson constructor

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

Implementation

factory MerkleProof.fromJson(Map<String, dynamic> json) {
  List<BigInt>? siblings = (json['siblings'] as List?)
      ?.map((item) => BigInt.parse(item))
      ?.toList();
  return MerkleProof(
      root: json['root'],
      siblings: siblings,
      oldKey: json['oldKey'],
      oldValue: json['oldValue'],
      isOld0: json['isOld0'],
      key: json['key'],
      value: json['value'],
      fnc: json['fnc']);
}