EventsBlocksResponse.fromJson constructor

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

Implementation

factory EventsBlocksResponse.fromJson(Map<String, dynamic> map) {
  return EventsBlocksResponse(
    map['max_sequence'],
    (map['events'] as List).map((e) => BlockEvent.fromJson(e)).toList(),
  );
}