fromDynamic static method

TestReportStep fromDynamic(
  1. dynamic map
)

Implementation

static TestReportStep fromDynamic(dynamic map) {
  late TestReportStep result;

  if (map == null) {
    throw Exception('[TestReportStep.fromDynamic]: map is null');
  } else {
    result = TestReportStep(
      endTime: JsonClass.parseUtcMillis(map['endTime']),
      error: map['error'],
      id: map['id'],
      startTime: JsonClass.parseUtcMillis(map['startTime']),
      step:
          map['step'] == null ? null : Map<String, dynamic>.from(map['step']),
      subStep: JsonClass.parseBool(map['subStep']),
    );
  }

  return result;
}