Client class

Client class

Annotations

Constructors

Client({@Default('') String id, @Default('') @JsonKey(name: 'user_id') String createdById, @Default('') @JsonKey(name: 'assigned_user_id') String assignedToId, @Default(0) @JsonKey(name: 'created_at') int createdAt, @Default(0) @JsonKey(name: 'updated_at') int updatedAt, @Default(0) @JsonKey(name: 'archived_at') int archivedAt, @Default(false) @JsonKey(name: 'is_deleted') bool isDeleted, @Default('') @JsonKey(name: 'custom_value1') String customValue1, @Default('') @JsonKey(name: 'custom_value2') String customValue2, @Default('') @JsonKey(name: 'custom_value3') String customValue3, @Default('') @JsonKey(name: 'custom_value4') String customValue4, @Default('') String name, @Default('') String website, @Default('') @JsonKey(name: 'private_notes') String privateNotes, @Default(0) double balance, @Default('') @JsonKey(name: 'group_settings_id') String groupId, @Default(0) @JsonKey(name: 'paid_to_date') double paidToDate, @Default(0) @JsonKey(name: 'credit_balance') double creditBalance, @Default(0) @JsonKey(name: 'last_login') int lastLogin, @Default('') @JsonKey(name: 'size_id') String sizeId, @Default('') @JsonKey(name: 'public_notes') String publicNotes, @Default('') String phone, @Default('') String address1, @Default('') String address2, @Default('') String city, @Default('') String state, @Default('') @JsonKey(name: 'postal_code') String postalCode, @Default('') @JsonKey(name: 'country_id') String countryId, @Default('') @JsonKey(name: 'industry_id') String industryId, @Default('') @JsonKey(name: 'shipping_address1') String shippingAddress1, @Default('') @JsonKey(name: 'shipping_address2') String shippingAddress2, @Default('') @JsonKey(name: 'shipping_city') String shippingCity, @Default('') @JsonKey(name: 'shipping_state') String shippingState, @Default('') @JsonKey(name: 'shipping_postal_code') String shippingPostalCode, @Default('') @JsonKey(name: 'shipping_country_id') String shippingCountryId, ClientSettings settings, @Default('') @JsonKey(name: 'id_number') String idNumber, @Default('') @JsonKey(name: 'vat_number') String vatNumber, @Default(const <ClientContact>[]) List<ClientContact> contacts})
Client factory constructor
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
read-only, inherited
address2 String
read-only, inherited
archivedAt int
@JsonKey(name: 'archived_at'), read-only, inherited
assignedToId String
@JsonKey(name: 'assigned_user_id'), read-only, inherited
balance double
read-only, inherited
city String
read-only, inherited
contacts List<ClientContact>
read-only, inherited
copyWith $ClientCopyWith<Client>
read-only, inherited
countryId String
@JsonKey(name: 'country_id'), read-only, inherited
createdAt int
@JsonKey(name: 'created_at'), read-only, inherited
createdById String
@JsonKey(name: 'user_id'), read-only, inherited
creditBalance double
@JsonKey(name: 'credit_balance'), read-only, inherited
customValue1 String
@JsonKey(name: 'custom_value1'), read-only, inherited
customValue2 String
@JsonKey(name: 'custom_value2'), read-only, inherited
customValue3 String
@JsonKey(name: 'custom_value3'), read-only, inherited
customValue4 String
@JsonKey(name: 'custom_value4'), read-only, inherited
groupId String
@JsonKey(name: 'group_settings_id'), read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
id String
read-only, inherited
idNumber String
@JsonKey(name: 'id_number'), read-only, inherited
industryId String
@JsonKey(name: 'industry_id'), read-only, inherited
isDeleted bool
@JsonKey(name: 'is_deleted'), read-only, inherited
key String
Get the default contact key
read-only
lastLogin int
@JsonKey(name: 'last_login'), read-only, inherited
name String
read-only, inherited
paidToDate double
@JsonKey(name: 'paid_to_date'), read-only, inherited
phone String
read-only, inherited
postalCode String
@JsonKey(name: 'postal_code'), read-only, inherited
privateNotes String
@JsonKey(name: 'private_notes'), read-only, inherited
publicNotes String
@JsonKey(name: 'public_notes'), read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
settings ClientSettings
read-only, inherited
shippingAddress1 String
@JsonKey(name: 'shipping_address1'), read-only, inherited
shippingAddress2 String
@JsonKey(name: 'shipping_address2'), read-only, inherited
shippingCity String
@JsonKey(name: 'shipping_city'), read-only, inherited
shippingCountryId String
@JsonKey(name: 'shipping_country_id'), read-only, inherited
shippingPostalCode String
@JsonKey(name: 'shipping_postal_code'), read-only, inherited
shippingState String
@JsonKey(name: 'shipping_state'), read-only, inherited
sizeId String
@JsonKey(name: 'size_id'), read-only, inherited
state String
read-only, inherited
updatedAt int
@JsonKey(name: 'updated_at'), read-only, inherited
vatNumber String
@JsonKey(name: 'vat_number'), read-only, inherited
website String
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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