toMap method
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,
"mfa": mfa,
"prefs": prefs.toMap(),
"targets": targets.map((p) => p.toMap()).toList(),
"accessedAt": accessedAt,
};
}