fromDynamic static method
Implementation
static TestReportMetadata? fromDynamic(
dynamic map, {
String? id,
}) {
TestReportMetadata? result;
if (map != null) {
result = TestReportMetadata(
deviceInfo: TestDeviceInfo.fromDynamic(map['deviceInfo']),
id: id ?? map['id'],
numSteps: JsonClass.parseInt(map['numSteps']),
passedSteps: JsonClass.parseInt(map['passedSteps']),
success: JsonClass.parseBool(map['success']),
suiteName: map['suiteName'],
testName: map['testName'],
testVersion: map['testVersion'],
timestamp: JsonClass.parseUtcMillis(map['timestamp']),
);
}
return result;
}