# fromEntityPlus method Null safety

dynamic fromEntityPlus(

1. String documentID,
2. DecoratedContentEntity? entity,
3. {String? appId}

)

## Implementation

    static Future<DecoratedContentModel?> fromEntityPlus(
        String documentID, DecoratedContentEntity? entity,
        {String? appId}) async {
      if (entity == null) return null;

      return DecoratedContentModel(
        documentID: documentID,
        appId: entity.appId ?? '',
        description: entity.description,
        decoratingComponentName: entity.decoratingComponentName,
        decoratingComponentId: entity.decoratingComponentId,
        contentComponentName: entity.contentComponentName,
        contentComponentId: entity.contentComponentId,
        decorationComponentPosition:
            toDecorationComponentPosition(entity.decorationComponentPosition),
        percentageDecorationVisible: entity.percentageDecorationVisible,
        conditions: await StorageConditionsModel.fromEntityPlus(entity.conditions,
            appId: appId),
      );
    }