Stream<Attribute<X>> get<X>(JsonPath<X>? path) => where((attr) => attr.path == path).map((a) => a.cast<X>());