fromEntityPlus static method
Future<ChatDashboardModel?>
fromEntityPlus(
- String documentID,
- ChatDashboardEntity? entity, {
- 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),
);
}