factory BlockEvent.fromMap(Map<String, dynamic> map) { return BlockEvent(map["sequence"], BlockIdentifier.fromMap(map["block_identifier"]), map["type"]); }