Scope constructor

Scope({
  1. ScopeType? scopeType,
  2. bool? readId,
  3. bool? readEmail,
  4. bool? readGender,
  5. bool? readCreatedAt,
  6. bool? offlineAccess,
})

Implementation

factory Scope({
  ScopeType? scopeType,
  $core.bool? readId,
  $core.bool? readEmail,
  $core.bool? readGender,
  $core.bool? readCreatedAt,
  $core.bool? offlineAccess,
}) {
  final _result = create();
  if (scopeType != null) {
    _result.scopeType = scopeType;
  }
  if (readId != null) {
    _result.readId = readId;
  }
  if (readEmail != null) {
    _result.readEmail = readEmail;
  }
  if (readGender != null) {
    _result.readGender = readGender;
  }
  if (readCreatedAt != null) {
    _result.readCreatedAt = readCreatedAt;
  }
  if (offlineAccess != null) {
    _result.offlineAccess = offlineAccess;
  }
  return _result;
}