BlockResponse class

Annotations
  • @JsonSerializable(checked: true, explicitToJson: true)

Constructors

BlockResponse({required BigInt height, required int score, required ModifierId bestBlockId, required Block bestBlock})
BlockResponse.fromJson(Map<String, dynamic> json)
A necessary factory constructor for creating a new BlockResponse instance from a map. Pass the map to the generated _$EvidenceFromJson() constructor. The constructor is named after the source class, in this case, BlockResponse.
factory

Properties

bestBlock Block
final
bestBlockId ModifierId
final
hashCode int
The hash code for this object.
no setteroverride
height BigInt
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
score int
final

Methods

copyWith({BigInt? height, int? score, ModifierId? bestBlockId, Block? bestBlock}) BlockResponse
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toJson is the convention for a class to declare support for serialization to JSON. The implementation simply calls the private, generated helper method _$BlockResponseToJson.
toString() String
A string representation of this object.
override

Operators

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