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>
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>
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.