toEntity method

  1. @override
DecoratedContentEntity toEntity({
  1. String? appId,
})
override

Implementation

@override
DecoratedContentEntity toEntity({String? appId}) {
  return DecoratedContentEntity(
    appId: appId,
    description: (description != null) ? description : null,
    decoratingComponentName:
        (decoratingComponentName != null) ? decoratingComponentName : null,
    decoratingComponentId:
        (decoratingComponentId != null) ? decoratingComponentId : null,
    contentComponentName:
        (contentComponentName != null) ? contentComponentName : null,
    contentComponentId:
        (contentComponentId != null) ? contentComponentId : null,
    decorationComponentPosition: (decorationComponentPosition != null)
        ? decorationComponentPosition!.index
        : null,
    percentageDecorationVisible: (percentageDecorationVisible != null)
        ? percentageDecorationVisible
        : null,
    conditions:
        (conditions != null) ? conditions!.toEntity(appId: appId) : null,
  );
}