Cohort class

Cohort Model. Contains information about a cohort.

Annotations
  • @JsonSerializable.new()

Constructors

Cohort({required String cohortId, required String? privacyPolicy, required String? cohortName, required String? dataPattern, required int canWithdraw, required int? permAppId, required int? permDrawOver})
Cohort Model constructor
Cohort.fromJson(Map<String, dynamic> json)
Converts a Map to an Cohort instance.
factory

Properties

canWithdraw → int
It is 1 if the device is allowed to withdraw, if 0 only the cohort manager can withdraw the device
final
cohortId → String
Cohort ID
final
cohortName → String?
Cohort name
final
dataPattern → String?
Data pattern (ignored)
final
hashCode → int
The hash code for this object.
no setterinherited
permAppId → int?
Is app id permission necessary for this cohort
final
permDrawOver → int?
Is app id permission necessary for this cohort
final
privacyPolicy → String?
Privacy policy, a text that explains the privacy policy of the cohort
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts an Cohort instance to a Map.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited