TransactionPartner.other constructor

  1. @Assert('type == TransactionPartnerType.other', 'type must be TransactionPartnerType.other')
const TransactionPartner.other({
  1. @JsonKey(name: 'type') @Default(TransactionPartnerType.other) TransactionPartnerType type,
})

Represents a transaction with an unknown source or recipient

Implementation

@Assert(
  'type == TransactionPartnerType.other',
  'type must be TransactionPartnerType.other',
)
const factory TransactionPartner.other({
  /// Type of the transaction partner, must be "other"
  @JsonKey(name: 'type')
  @Default(TransactionPartnerType.other)
  TransactionPartnerType type,
}) = TransactionPartnerOther;