JourneyExecutionMetricsResponse.fromJson constructor

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

Implementation

factory JourneyExecutionMetricsResponse.fromJson(Map<String, dynamic> json) {
  return JourneyExecutionMetricsResponse(
    applicationId: json['ApplicationId'] as String,
    journeyId: json['JourneyId'] as String,
    lastEvaluatedTime: json['LastEvaluatedTime'] as String,
    metrics: (json['Metrics'] as Map<String, dynamic>)
        .map((k, e) => MapEntry(k, e as String)),
  );
}