AuthRes.fromJson constructor

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

Implementation

factory AuthRes.fromJson(Map<String, dynamic> json) => AuthRes(
      id: json["id"],
      firstName: json["first_name"],
      lastName: json["last_name"],
      email: json["email"],
      companyId: json["company_id"],
      createdAt: DateTime.parse(json["created_at"]),
      token: json["token"],
    );