ActivityResponse.fromJson constructor

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

Implementation

factory ActivityResponse.fromJson(Map<String, dynamic> json) {
  return ActivityResponse(
    applicationId: json['ApplicationId'] as String,
    campaignId: json['CampaignId'] as String,
    id: json['Id'] as String,
    end: json['End'] as String?,
    result: json['Result'] as String?,
    scheduledStart: json['ScheduledStart'] as String?,
    start: json['Start'] as String?,
    state: json['State'] as String?,
    successfulEndpointCount: json['SuccessfulEndpointCount'] as int?,
    timezonesCompletedCount: json['TimezonesCompletedCount'] as int?,
    timezonesTotalCount: json['TimezonesTotalCount'] as int?,
    totalEndpointCount: json['TotalEndpointCount'] as int?,
    treatmentId: json['TreatmentId'] as String?,
  );
}