fromEntity static method
Implementation
static Future<ActionModel?> fromEntity(
AppModel app, PostActionEntity entity) async {
if (entity.appID == null) {
throw Exception('entity PostActionModel.appID is null');
}
return PostActionModel(
app,
conditions: await DisplayConditionsModel.fromEntity(entity.conditions),
);
}