TestingDataResult.fromJson constructor

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

Implementation

factory TestingDataResult.fromJson(Map<String, dynamic> json) {
  return TestingDataResult(
    input: json['Input'] != null
        ? TestingData.fromJson(json['Input'] as Map<String, dynamic>)
        : null,
    output: json['Output'] != null
        ? TestingData.fromJson(json['Output'] as Map<String, dynamic>)
        : null,
    validation: json['Validation'] != null
        ? ValidationData.fromJson(json['Validation'] as Map<String, dynamic>)
        : null,
  );
}