Problem.fromJson constructor

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

Implementation

factory Problem.fromJson(Map<String, dynamic> json) {
  return Problem(
    device: json['device'] != null
        ? Device.fromJson(json['device'] as Map<String, dynamic>)
        : null,
    job: json['job'] != null
        ? ProblemDetail.fromJson(json['job'] as Map<String, dynamic>)
        : null,
    message: json['message'] as String?,
    result: (json['result'] as String?)?.toExecutionResult(),
    run: json['run'] != null
        ? ProblemDetail.fromJson(json['run'] as Map<String, dynamic>)
        : null,
    suite: json['suite'] != null
        ? ProblemDetail.fromJson(json['suite'] as Map<String, dynamic>)
        : null,
    test: json['test'] != null
        ? ProblemDetail.fromJson(json['test'] as Map<String, dynamic>)
        : null,
  );
}