fromEntity static method
Implementation
static Future<AppPolicyModel?> fromEntity(
String documentID, AppPolicyEntity? entity) async {
if (entity == null) return null;
return AppPolicyModel(
documentID: documentID,
appId: entity.appId ?? '',
name: entity.name,
conditions: await StorageConditionsModel.fromEntity(entity.conditions),
);
}