BlockResponse.fromJson constructor

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

Implementation

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