Database.fromMap constructor

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

Implementation

factory Database.fromMap(Map<String, dynamic> map) {
  return Database(
    $id: map['\$id'].toString(),
    name: map['name'].toString(),
    $createdAt: map['\$createdAt'].toString(),
    $updatedAt: map['\$updatedAt'].toString(),
    enabled: map['enabled'],
  );
}