toEntity method
Implementation
@override
MemberProfileEntity toEntity({String? appId}) {
return MemberProfileEntity(
appId: appId,
feedId: (feedId != null) ? feedId : null,
authorId: (authorId != null) ? authorId : null,
profile: (profile != null) ? profile : null,
profileBackgroundId:
(profileBackground != null) ? profileBackground!.documentID : null,
profileOverride: (profileOverride != null) ? profileOverride : null,
nameOverride: (nameOverride != null) ? nameOverride : null,
accessibleByGroup:
(accessibleByGroup != null) ? accessibleByGroup!.index : null,
accessibleByMembers:
(accessibleByMembers != null) ? accessibleByMembers : null,
readAccess: (readAccess != null) ? readAccess : null,
memberMedia: (memberMedia != null)
? memberMedia!.map((item) => item.toEntity(appId: appId)).toList()
: null,
);
}