Employee class

An Employee created in the Square Dashboard account of a business. Used by the LaborApi.

Annotations
  • @JsonSerializable()

Constructors

Employee({required String id, required String firstName, required String lastName, required String emailAddress, required String phoneNumber, required List<String> locationIds, required EmployeeStatus status, required DateTime createdAt, required DateTime updatedAt})
const
Employee.fromJson(Map<String, dynamic> json)
Converts a Map to an Employee
factory

Properties

createdAt DateTime
When the Employee's was created.
final
emailAddress String
The Employee's email address.
final
firstName String
The Employee's first name.
final
hashCode int
The hash code for this object.
no setterinherited
id String
The Employee's unique id in guid form.
final
lastName String
The Employee's last name.
final
locationIds List<String>
The list of Locations (by id) that the Employee has access to.
final
phoneNumber String
The Employee's phone number.
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status EmployeeStatus
Whether the Employee is active or inactive.
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
updatedAt DateTime
When the Employee's was last updated.
final

Methods

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

Operators

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