HeliumPoCPathElement class

Represents an element of a Proof of Coverage path. It is part of a poc_receipts_v1 transaction.

Annotations
  • @JsonSerializable()

Constructors

HeliumPoCPathElement({required List<HeliumPoCWitness> witnesses, HeliumPoCReceipt? receipt, HeliumGeocode? geocode, required String challengee, required String challengeeOwner, required String challengeeLocation, required String challengeeLocationHex, required double challengeeLat, required double challengeeLon})
Creates a new instance.
HeliumPoCPathElement.fromJson(Map<String, dynamic> json)
Creates an instance from a map derived from the JSON serialization.
factory

Properties

challengee String
The B58 address of the hotspot that sent the beacon.
final
challengeeLat double
The latitude of the hotspot that sent the beacon, in degrees.
final
challengeeLocation String
The H3 index of the res 12 hex of the hotspot that sent the beacon.
final
challengeeLocationHex String
The H3 index of the res 8 hex of the hotspot that sent the beacon.
final
challengeeLon double
The longitude of the hotspot that sent the beacon, in degrees.
final
challengeeOwner String
The wallet address of the owner of the hotspot that sent the beacon.
final
geocode HeliumGeocode?
The reverse geocode of the hotspot that sent the beacon.
final
hashCode int
The hash code for this object.
no setterinherited
receipt HeliumPoCReceipt?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
witnesses List<HeliumPoCWitness>
The hotspots that witnessed the beacon.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Creates a map suitable for serialization to JSON.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited