CampaignModel class
Constructors
- CampaignModel({required String id, required String text, bool isEnabled = true, required SMSType type, required int contactCount, required int creditUsed, required DateTime createdAt, required CampaignCountModel count, DateTime? scheduledDate})
-
CampaignModel.fromJson(Map<
String, dynamic> json) -
factory
Properties
- box → BoxBase?
-
Get the box in which this object is stored. Returns
nullif object has not been added to a box yet.no setterinherited - contactCount → int
-
final
- count → CampaignCountModel
-
final
- createdAt → DateTime
-
final
- creditUsed → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → String
-
final
- isEnabled → bool
-
final
- isInBox → bool
-
Returns whether this object is currently stored in a box.
no setterinherited
- key → dynamic
-
Get the key associated with this object. Returns
nullif object has not been added to a box yet.no setterinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scheduledDate → DateTime?
-
final
- text → String
-
final
- type → SMSType
-
final
Methods
-
delete(
) → Future< void> -
Deletes this object from the box it is stored in.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
save(
) → Future< void> -
Persists this object.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited