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