ReceiptDetailModel class

Inheritance
Annotations
  • @Entity.new(tableName: 'receipt_detail', primaryKeys: ['branch_id', 'type_id', 'receipt_id', 'account_id'], foreignKeys: [ForeignKey(childColumns: ['branch_id'], parentColumns: ['id'], entity: BranchModel), ForeignKey(childColumns: ['type_id'], parentColumns: ['id'], entity: ReceiptTypeModel), ForeignKey(childColumns: ['receipt_id'], parentColumns: ['id'], entity: ReceiptModel), ForeignKey(childColumns: ['account_id'], parentColumns: ['id'], entity: AccountModel), ForeignKey(childColumns: ['currency_id'], parentColumns: ['id'], entity: CurrencyModel)])

Constructors

ReceiptDetailModel({int branchId = 0, int typeId = 0, int receiptId = 0, required int accountId, required int currencyId, required double price, String? description})
const
ReceiptDetailModel.fromMap(Map<String, dynamic> map)

Properties

accountId int
final
branchId int
final
currencyId int
final
description String?
final
hashCode int
The hash code for this object.
no setterinherited
price double
final
props List<Object?>
primary key
no setter
receiptId int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessionId int
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
typeId int
final
userId int
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

accountIdTag → const String
branchIdTag → const String
currencyIdTag → const String
descriptionTag → const String
priceTag → const String
receiptIdTag → const String
sessionIdTag → const String
typeIdTag → const String
userIdTag → const String