# fromEntity method Null safety

dynamic fromEntity(

1. AppModel app,
2. GotoPageEntity entity

)
override

## Implementation

    static Future<ActionModel> fromEntity(
        AppModel app, GotoPageEntity entity) async {
      if (entity.appID == null) throw Exception('entity GotoPage.appID is null');
      if (entity.pageID == null) {
        throw Exception('entity GotoPage.pageID is null');
      }

      return GotoPage(app,
          conditions: await DisplayConditionsModel.fromEntity(entity.conditions),
          pageID: entity.pageID!);
    }