AccountBalance constructor

  1. @JsonSerializable(explicitToJson: true)
const AccountBalance({
  1. required int asOf,
  2. required BalanceType type,
  3. Map<String, int>? cash,
  4. Map<String, int>? credit,
  5. Map<String, int>? current,
})

Implementation

@JsonSerializable(explicitToJson: true)
const factory AccountBalance({
  /// Unix timestamp in milliseconds of time the external instition calculated this balance.
  required int asOf,

  /// The type of balance.
  required BalanceType type,

  /// The funds available to the account holder.
  ///
  /// Typically this is the current balance less any holds.
  /// Each key is a three letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) in lowercase.
  /// Each value is an integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder.
  Map<String, int>? cash,

  /// The credit that has been used by the account holder.
  ///
  /// Each key is a three letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) in lowercase.
  /// Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder.
  Map<String, int>? credit,

  /// The balances owed to (or by) the account holder.
  ///
  /// Each key is a three letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html) in lowercase.
  /// Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder.
  Map<String, int>? current,
}) = _AccountBalance;