EvaluationResult.fromJson constructor

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

Implementation

factory EvaluationResult.fromJson(Map<String, dynamic> json) {
  return EvaluationResult(
    algorithmArn: json['AlgorithmArn'] as String?,
    testWindows: (json['TestWindows'] as List?)
        ?.whereNotNull()
        .map((e) => WindowSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}