Collection class
A Collection class represents the collection data.
- Annotations
-
- @freezed
Constructors
- Collection({@JsonKey(name: 'collectionName') required String name, @JsonKey(name: 'collectionSymbol') required String symbol, @JsonKey(name: 'collectionAddress') required String address})
-
Creates a new Collection instance with the given
name
,symbol
, andaddress
.factory -
Collection.fromJson(Map<
String, dynamic> json) -
Constructs a Collection from a JSON map.
factory
Properties
- address → String
-
no setterinherited
-
copyWith
→ $CollectionCopyWith<
Collection> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- symbol → String
-
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited