getOrganizationBabyBeat method

void getOrganizationBabyBeat()

Retrieves the BabyBeat organization details.

Implementation

void getOrganizationBabyBeat() async {
  try {
    final document = await databases.getDocument(
      databaseId: AppConstants.appwriteDatabaseId,
      collectionId: AppConstants.userCollectionId,
      documentId: doctor!.organizationNameBabyBeat!,
    );

    debugPrint(document.$id);
    setState(() {
      organizationBabyBeat =
          Organization.fromMap(document.data, );
    });
  } catch (e) {
    debugPrint('Error fetching organizationBabyBeat: $e');
  }
}