toEntity method

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

Implementation

@override
PresentationEntity toEntity({String? appId}) {
  return PresentationEntity(
    appId: appId,
    description: (description != null) ? description : null,
    bodyComponents: (bodyComponents != null)
        ? bodyComponents!.map((item) => item.toEntity(appId: appId)).toList()
        : null,
    imageId: (image != null) ? image!.documentID : null,
    imagePositionRelative:
        (imagePositionRelative != null) ? imagePositionRelative!.index : null,
    imageAlignment: (imageAlignment != null) ? imageAlignment!.index : null,
    imageWidth: (imageWidth != null) ? imageWidth : null,
    conditions:
        (conditions != null) ? conditions!.toEntity(appId: appId) : null,
  );
}