toEntity method
Implementation
@override
PublicMediumEntity toEntity({String? appId}) {
return PublicMediumEntity(
authorId: authorId,
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,
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,
);
}