IUserProperties.fromJson constructor

IUserProperties.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory IUserProperties.fromJson(Map<String, dynamic> json) {
  return IUserProperties(
    id: json['id'],
    workerId: json['worker_id'],
    firstName: json['first_name'],
    lastName: json['last_name'],
    companyId: json['company_id'],
    workAuthorized: json['work_authorized'],
  );
}