Buyer class

Represents the buyer in a transaction, including their name, VAT number, and address.

The Buyer class holds information about the buyer, which is typically required for invoicing and tax-related documents. The class includes:

  • name: The name of the buyer.
  • vatNumber: The VAT (Value Added Tax) number of the buyer, which is used for tax purposes.
  • address: The physical address of the buyer.

Constructors

Buyer({required String name, required String vatNumber, required String address})
Constructs a Buyer instance with the specified name, vatNumber, and address.

Properties

address String
The physical address of the buyer.
final
hashCode int
The hash code for this object.
no setterinherited
name String
The name of the buyer.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
vatNumber String
The VAT number of the buyer, used for tax identification.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts the Buyer instance to a JSON representation.
toString() String
A string representation of this object.
inherited

Operators

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