BlockResponse.fromMap constructor

BlockResponse.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory BlockResponse.fromMap(Map<String, dynamic> map) {
  return BlockResponse(
      map["block"] != null ? Block.fromMap(map["block"]) : null,
      map["other_transactions"] != null
          ? (map["other_transactions"] as List)
              .map((e) => TransactionIdentifier.fromMap(e))
              .toList()
          : null);
}