Campaign.fromJson constructor

Campaign.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Campaign.fromJson(Map<String, dynamic> json)
    : idCampaign = json['id'] as String,
      variationGroupId = json['variationGroupId'] as String,
      variation =
          Variation.fromJson(json['variation'] as Map<String, dynamic>);