toEntity method

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

Implementation

@override
DocumentEntity toEntity({String? appId}) {
  return DocumentEntity(
    appId: appId,
    description: (description != null) ? description : null,
    content: (content != null) ? content : null,
    padding: (padding != null) ? padding : null,
    images: (images != null)
        ? images!.map((item) => item.toEntity(appId: appId)).toList()
        : null,
    background:
        (background != null) ? background!.toEntity(appId: appId) : null,
    conditions:
        (conditions != null) ? conditions!.toEntity(appId: appId) : null,
  );
}