GetBlockResponse.fromJson constructor

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

Implementation

factory GetBlockResponse.fromJson(Map<String, dynamic> json) {
  return GetBlockResponse(
    block: ValueHolder.fromJson(json['Block'] as Map<String, dynamic>),
    proof: json['Proof'] != null
        ? ValueHolder.fromJson(json['Proof'] as Map<String, dynamic>)
        : null,
  );
}