toEntity method
Implementation
@override
FeedEntity toEntity({String? appId}) {
return FeedEntity(
appId: appId,
description: (description != null) ? description : null,
thumbImage: (thumbImage != null) ? thumbImage!.index : null,
photoPost: (photoPost != null) ? photoPost : null,
videoPost: (videoPost != null) ? videoPost : null,
messagePost: (messagePost != null) ? messagePost : null,
audioPost: (audioPost != null) ? audioPost : null,
albumPost: (albumPost != null) ? albumPost : null,
articlePost: (articlePost != null) ? articlePost : null,
);
}