menu
studyu_core package
documentation
core.dart
StudyInvite class
StudyInvite class
dark_mode
light_mode
StudyInvite
class
Inheritance
Object
SupabaseObjectFunctions
<
StudyInvite
>
StudyInvite
Annotations
@JsonSerializable.new()
Constructors
StudyInvite
(
String
code
,
@JsonKey.new(name: 'study_id')
String
studyId
, {
@JsonKey.new(name: 'preselected_intervention_ids')
List
<
String
>
?
preselectedInterventionIds
,
@JsonKey.new(name: participantCountJsonKey, includeToJson: false)
int
participantCount
=
0
})
StudyInvite.fromJson
(
Map
<
String
,
dynamic
>
json
)
factory
Properties
code
↔
String
getter/setter pair
hashCode
→
int
The hash code for this object.
no setter
inherited
participantCount
↔
int
getter/setter pair
preselectedInterventionIds
↔
List
<
String
>
?
getter/setter pair
primaryKeys
→
Map
<
String
,
Object
>
no setter
override
runtimeType
→
Type
A representation of the runtime type of the object.
no setter
inherited
studyId
↔
String
getter/setter pair
Methods
delete
(
)
→
Future
<
StudyInvite
>
inherited
noSuchMethod
(
Invocation
invocation
)
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
save
(
{
bool
onlyUpdate
=
false
})
→
Future
<
StudyInvite
>
Save the object to the database. By default, this will upsert the object, i.e. insert it if it does not exist, or update it if it does. If
onlyUpdate
is set to true, the object has to exist in the database, otherwise the result will be empty.
inherited
toJson
(
)
→
Map
<
String
,
dynamic
>
override
toString
(
)
→
String
A string representation of this object.
inherited
Operators
operator ==
(
Object
other
)
→
bool
The equality operator.
inherited
Constants
participantCountJsonKey
→ const
String
tableName
→ const
String
studyu_core package
documentation
core
StudyInvite class
core library