getCampaign method

Future<Campaign> getCampaign(
  1. int id
)

Get a campaign by id

Input Action id Returns the CampaignAction with that id

Implementation

Future<Campaign> getCampaign(int id) async {
  return _apiService.getModelRequest("v2/campaigns/$id", Campaign.fromJson);
}