toEntity method
Implementation
@override
FeedMenuEntity toEntity({String? appId}) {
return FeedMenuEntity(
appId: appId,
description: (description != null) ? description : null,
bodyComponentsCurrentMember: (bodyComponentsCurrentMember != null)
? bodyComponentsCurrentMember!
.map((item) => item.toEntity(appId: appId))
.toList()
: null,
bodyComponentsOtherMember: (bodyComponentsOtherMember != null)
? bodyComponentsOtherMember!
.map((item) => item.toEntity(appId: appId))
.toList()
: null,
itemColor: (itemColor != null) ? itemColor!.toEntity(appId: appId) : null,
selectedItemColor: (selectedItemColor != null)
? selectedItemColor!.toEntity(appId: appId)
: null,
backgroundOverride: (backgroundOverride != null)
? backgroundOverride!.toEntity(appId: appId)
: null,
feedFrontId: (feedFront != null) ? feedFront!.documentID : null,
conditions:
(conditions != null) ? conditions!.toEntity(appId: appId) : null,
);
}