Campaign class

A campaign in the Instantly API.

Available extensions
Annotations
  • @freezed

Constructors

Campaign.new({required String id, String? name, String? status, List<Account>? accounts})
Default constructor for the campaign.
const
factory
Campaign.fromJson(Map<String, dynamic> json)
Create a campaign from a JSON object.
factory

Properties

accounts List<Account>?
no setterinherited
copyWith → $CampaignCopyWith<Campaign>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String
no setterinherited
name String?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status String?
no setterinherited

Methods

getAccounts(InstantlyApiClient client) Future<Campaign>

Available on Campaign, provided by the CampaignExtension extension

Since Instantly has a weird design, use this function if you got the campaign's name or status first and then want to get the accounts.
getName(InstantlyApiClient client) Future<Campaign>

Available on Campaign, provided by the CampaignExtension extension

Since Instantly has a weird design, use this function if you got the campaign's status or accounts first and then want to get the name.
getStatus(InstantlyApiClient client) Future<Campaign>

Available on Campaign, provided by the CampaignExtension extension

Since Instantly has a weird design, use this function if you got the campaign's name or accounts first and then want to get the status.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

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