Transaction class

Annotations
  • @freezed

Constructors

Transaction({@Default(invalidIntValue) int id, @Default(invalidIntValue) int productId, ProductInfo? productInfo, required DateTime date, @Default('') String buysell, @Default(0) double price, @Default(0) int quantity, @Default(0) double total, @Default(0) int orderTypeId, @Default('') String counterParty, @Default(false) bool transfered, @Default(0) double fxRate, @Default(0) double nettFxRate, @Default(0) double grossFxRate, @Default(0) double autoFxFeeInBaseCurrency, @Default(0) double totalInBaseCurrency, @Default(0) double feeInBaseCurrency, @Default(0) double totalFeesInBaseCurrency, @Default(0) double totalPlusFeeInBaseCurrency, @Default(0) double totalPlusAllFeesInBaseCurrency, @Default(0) int transactionTypeId, @Default('') String tradingVenue})
const
factory
Transaction.fromJson(Map<String, Object?> json)
factory

Properties

action Buysell
no setter
autoFxFeeInBaseCurrency double
no setterinherited
buysell String
no setterinherited
copyWith → $TransactionCopyWith<Transaction>
no setterinherited
counterParty String
no setterinherited
date DateTime
no setterinherited
feeInBaseCurrency double
no setterinherited
fxRate double
no setterinherited
grossFxRate double
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id int
no setterinherited
nettFxRate double
no setterinherited
orderTypeId int
no setterinherited
price double
no setterinherited
productId int
no setterinherited
productInfo ProductInfo?
no setterinherited
quantity int
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
total double
no setterinherited
totalFeesInBaseCurrency double
no setterinherited
totalInBaseCurrency double
no setterinherited
totalPlusAllFeesInBaseCurrency double
no setterinherited
totalPlusFeeInBaseCurrency double
no setterinherited
tradingVenue String
no setterinherited
transactionTypeId int
no setterinherited
transfered bool
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