toMap method
Implementation
Map<String, dynamic> toMap() => {
"id": id,
"first_name": firstName,
"last_name": lastName,
"equipment_id": equipmentId,
"middle_name": middleName,
"phone": phone,
"profile_photo": profilePhoto,
"is_working": isWorking,
"registered_my_id": myId,
"balance": balance,
"average_rating": averageRating,
"order_count": orderCount,
"medal_level": medalLevel,
"activity": activity,
"unseen_notification_count": unseenNotificationCount,
"self_employment_status_set": selfEmploymentStatusSet,
"commissioner_is_set": commissionerIsSet,
"passed_test": passedTest,
"driving_license_uploaded": drivingLicenseUploaded,
"driving_license_approved": drivingLicenseApproved,
"visited_office": visitedOffice,
"email": email,
"locker_sync_value": lockerSyncValue,
"seen_hints": seenHints == null
? []
: List<dynamic>.from(seenHints!.map((x) => x)),
"stats": stats?.toMap(),
};