AccountBalance class abstract
information related to the bank account
- Available extensions
- Annotations
-
- @freezed
Constructors
-
AccountBalance.new({required int asOf, required BalanceType type, Map<
String, int> ? cash, Map<String, int> ? credit, Map<String, int> ? current}) -
constfactory
-
AccountBalance.fromJson(Map<
String, dynamic> json) -
factory
Properties
- asOf → int
-
Unix timestamp in milliseconds of time the external instition calculated this balance.
no setterinherited
-
cash
→ Map<
String, int> ? -
The funds available to the account holder.
no setterinherited
-
copyWith
→ $AccountBalanceCopyWith<
AccountBalance> -
Create a copy of AccountBalance
with the given fields replaced by the non-null parameter values.
no setterinherited
-
credit
→ Map<
String, int> ? -
The credit that has been used by the account holder.
no setterinherited
-
current
→ Map<
String, int> ? -
The balances owed to (or by) the account holder.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → BalanceType
-
The type of balance.
no setterinherited
Methods
-
map<
TResult extends Object?> (TResult $default(_AccountBalance value)) → TResult -
Available on AccountBalance, provided by the AccountBalancePatterns extension
Aswitch
-like method, using callbacks. -
mapOrNull<
TResult extends Object?> (TResult? $default(_AccountBalance value)?) → TResult? -
Available on AccountBalance, provided by the AccountBalancePatterns extension
A variant ofmap
that fallback to returningnull
. -
maybeMap<
TResult extends Object?> (TResult $default(_AccountBalance value)?, {required TResult orElse()}) → TResult -
Available on AccountBalance, provided by the AccountBalancePatterns extension
A variant ofmap
that fallback to returningorElse
. -
maybeWhen<
TResult extends Object?> (TResult $default(int asOf, BalanceType type, Map< String, int> ? cash, Map<String, int> ? credit, Map<String, int> ? current)?, {required TResult orElse()}) → TResult -
Available on AccountBalance, provided by the AccountBalancePatterns extension
A variant ofwhen
that fallback to anorElse
callback. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this AccountBalance to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
when<
TResult extends Object?> (TResult $default(int asOf, BalanceType type, Map< String, int> ? cash, Map<String, int> ? credit, Map<String, int> ? current)) → TResult -
Available on AccountBalance, provided by the AccountBalancePatterns extension
Aswitch
-like method, using callbacks. -
whenOrNull<
TResult extends Object?> (TResult? $default(int asOf, BalanceType type, Map< String, int> ? cash, Map<String, int> ? credit, Map<String, int> ? current)?) → TResult? -
Available on AccountBalance, provided by the AccountBalancePatterns extension
A variant ofwhen
that fallback to returningnull
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited