toMap method

Map<String, dynamic> toMap()
override

Implementation

Map<String, dynamic> toMap() {
  return {
    "\$id": $id,
    "\$createdAt": $createdAt,
    "\$updatedAt": $updatedAt,
    "name": name,
    "password": password,
    "hash": hash,
    "hashOptions": hashOptions,
    "registration": registration,
    "status": status,
    "labels": labels,
    "passwordUpdate": passwordUpdate,
    "email": email,
    "phone": phone,
    "emailVerification": emailVerification,
    "phoneVerification": phoneVerification,
    "prefs": prefs.toMap(),
    "accessedAt": accessedAt,
  };
}