fromEntityPlus static method

Future<ChatDashboardModel?> fromEntityPlus(
  1. String documentID,
  2. ChatDashboardEntity? entity, {
  3. String? appId,
})

Implementation

static Future<ChatDashboardModel?> fromEntityPlus(
    String documentID, ChatDashboardEntity? entity,
    {String? appId}) async {
  if (entity == null) return null;

  return ChatDashboardModel(
    documentID: documentID,
    appId: entity.appId ?? '',
    description: entity.description,
    conditions: await StorageConditionsModel.fromEntityPlus(entity.conditions,
        appId: appId),
    membersType: toMembersType(entity.membersType),
  );
}