ScStateElement.fromJson constructor

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

Implementation

factory ScStateElement.fromJson(Map<String, dynamic> json) {
  return ScStateElement(
    leafIndex: json['leafIndex'] ?? 0,
    merkleProof: (json['merkleProof'] as List? ?? [])
        .map((item) => '$item')
        .toList(),
  );
}