toEntity method
Implementation
@override
MemberMediumEntity toEntity({String? appId}) {
return MemberMediumEntity(
appId: appId,
authorId: (authorId != null) ? authorId : null,
base: (base != null) ? base : null,
ext: (ext != null) ? ext : null,
url: (url != null) ? url : null,
ref: (ref != null) ? ref : null,
urlThumbnail: (urlThumbnail != null) ? urlThumbnail : null,
refThumbnail: (refThumbnail != null) ? refThumbnail : null,
accessibleByGroup:
(accessibleByGroup != null) ? accessibleByGroup!.index : null,
accessibleByMembers:
(accessibleByMembers != null) ? accessibleByMembers : null,
readAccess: (readAccess != null) ? readAccess : null,
mediumType: (mediumType != null) ? mediumType!.index : null,
mediumWidth: (mediumWidth != null) ? mediumWidth : null,
mediumHeight: (mediumHeight != null) ? mediumHeight : null,
thumbnailWidth: (thumbnailWidth != null) ? thumbnailWidth : null,
thumbnailHeight: (thumbnailHeight != null) ? thumbnailHeight : null,
relatedMediumId: (relatedMediumId != null) ? relatedMediumId : null,
);
}