toEntity method
Implementation
@override
AccessEntity toEntity({String? appId}) {
return AccessEntity(
appId: appId,
privilegeLevel: (privilegeLevel != null) ? privilegeLevel!.index : null,
points: (points != null) ? points : null,
blocked: (blocked != null) ? blocked : null,
privilegeLevelBeforeBlocked: (privilegeLevelBeforeBlocked != null)
? privilegeLevelBeforeBlocked!.index
: null,
);
}