# toEntity method Null safety

1. @override

ListedItemEntity toEntity(

1. {String? appId}

)
override

## Implementation

    @override
    ListedItemEntity toEntity({String? appId}) {
      return ListedItemEntity(
        description: (description != null) ? description : null,
        action: (action != null) ? action!.toEntity(appId: appId) : null,
        imageId: (image != null) ? image!.documentID : null,
        posSize: (posSize != null) ? posSize!.toEntity(appId: appId) : null,
      );
    }