Network class
Class for network data
- Annotations
-
- @JsonSerializable()
Constructors
- Network.new({NetworkType? type, String? rpcUrl})
- Constructor for creating Network object.
-
Network.fromJson(Map<
String, dynamic> json) -
Constructor for deserialize json Map into Network object.
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- rpcUrl ↔ String?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type ↔ NetworkType?
-
network types
mainnet
,ghostnet
,mondaynet
,delphinet
,edonet
,florencenet
,granadanet
,hangzhounet
,ithacanet
,jakartanet
,kathmandunet
,custom
,getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Return the serializable of this object into Map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited