WalletUpgrade class
Represents a wallet upgrade.
A wallet upgrade contains information about the version, contract address, disabled and enabled modules, and the creation and update timestamps.
- Annotations
-
- @freezed
Constructors
-
WalletUpgrade({String? version, required String contractAddress, String? paddedVersion, required Map<
String, String> disabledModules, required Map<String, String> enabledModules, required DateTime createdAt, required DateTime updatedAt, @JsonKey(name: '_id') required String id}) -
Creates a new WalletUpgrade instance.
factory
-
WalletUpgrade.fromJson(Map<
String, dynamic> json) -
Creates a WalletUpgrade instance from a JSON object.
factory
Properties
- contractAddress → String
-
no setterinherited
-
copyWith
→ $WalletUpgradeCopyWith<
WalletUpgrade> -
Create a copy of WalletUpgrade
with the given fields replaced by the non-null parameter values.
no setterinherited
- createdAt → DateTime
-
no setterinherited
-
disabledModules
→ Map<
String, String> -
no setterinherited
-
enabledModules
→ Map<
String, String> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
no setterinherited
- paddedVersion → String?
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- updatedAt → DateTime
-
no setterinherited
- version → String?
-
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this WalletUpgrade to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
walletUpgradesFromJson(
Iterable walletUpgrades) → List< WalletUpgrade> - Creates a list of WalletUpgrade instances from a JSON array.