Document.fromMap constructor

Document.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory Document.fromMap(Map<String, dynamic> map) {
  return Document(
    $id: map['\$id'].toString(),
    $collectionId: map['\$collectionId'].toString(),
    $databaseId: map['\$databaseId'].toString(),
    $createdAt: map['\$createdAt'].toString(),
    $updatedAt: map['\$updatedAt'].toString(),
    $permissions: map['\$permissions'],
    data: map,
  );
}