Client class

Client class

Annotations
  • @freezed

Constructors

Client({@Default.new('') String id, @Default.new('') String createdById, @Default.new('') String assignedToId, @Default.new(0) int createdAt, @Default.new(0) int updatedAt, @Default.new(0) int archivedAt, @Default.new(false) bool isDeleted, @Default.new('') String customValue1, @Default.new('') String customValue2, @Default.new('') String customValue3, @Default.new('') String customValue4, @Default.new('') String name, @Default.new('') String website, @Default.new('') String privateNotes, @Default.new(0) double balance, @Default.new('') String groupId, @Default.new(0) double paidToDate, @Default.new(0) double creditBalance, @Default.new(0) int lastLogin, @Default.new('') String sizeId, @Default.new('') String publicNotes, @Default.new('') String phone, @Default.new('') String address1, @Default.new('') String address2, @Default.new('') String city, @Default.new('') String state, @Default.new('') String postalCode, @Default.new('') String countryId, @Default.new('') String industryId, @Default.new('') String shippingAddress1, @Default.new('') String shippingAddress2, @Default.new('') String shippingCity, @Default.new('') String shippingState, @Default.new('') String shippingPostalCode, @Default.new('') String shippingCountryId, ClientSettings? settings, @Default.new('') String idNumber, @Default.new('') String vatNumber, @Default.new(<ClientContact>[]) List<ClientContact> contacts, @Default.new(<Document>[]) List<Document> documents})
Client factory constructor
const
factory
Client.forContact({String firstName = '', String lastName = '', String email = '', String phone = ''})
Create a client using contact details
factory
Client.fromJson(Map<String, dynamic> json)
Create a Client from JSON
factory

Properties

address1 → String
no setterinherited
address2 → String
no setterinherited
archivedAt → int
no setterinherited
assignedToId → String
no setterinherited
balance → double
no setterinherited
city → String
no setterinherited
contacts → List<ClientContact>
no setterinherited
copyWith → $ClientCopyWith<Client>
no setterinherited
countryId → String
no setterinherited
createdAt → int
no setterinherited
createdById → String
no setterinherited
creditBalance → double
no setterinherited
customValue1 → String
no setterinherited
customValue2 → String
no setterinherited
customValue3 → String
no setterinherited
customValue4 → String
no setterinherited
documents → List<Document>
no setterinherited
groupId → String
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
id → String
no setterinherited
idNumber → String
no setterinherited
industryId → String
no setterinherited
isDeleted → bool
no setterinherited
key → String
Get the default contact key
no setter
lastLogin → int
no setterinherited
name → String
no setterinherited
paidToDate → double
no setterinherited
phone → String
no setterinherited
postalCode → String
no setterinherited
privateNotes → String
no setterinherited
publicNotes → String
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
settings → ClientSettings?
no setterinherited
shippingAddress1 → String
no setterinherited
shippingAddress2 → String
no setterinherited
shippingCity → String
no setterinherited
shippingCountryId → String
no setterinherited
shippingPostalCode → String
no setterinherited
shippingState → String
no setterinherited
sizeId → String
no setterinherited
state → String
no setterinherited
updatedAt → int
no setterinherited
vatNumber → String
no setterinherited
website → String
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