fromEntity static method

Future<ActionModel?> fromEntity(
  1. AppModel app,
  2. PostActionEntity entity
)
override

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),
  );
}