toEntity method

  1. @override
AccessEntity toEntity({
  1. String? appId,
})
override

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,
  );
}