fromDynamic static method
Deserializes the command from a Map or a map-like object into the the
proper data model. This will throw an exception if map
is null.
Implementation
static RunTestCommand fromDynamic(
dynamic map,
String id,
DateTime timestamp,
) {
late RunTestCommand result;
if (map == null) {
throw Exception('[RunTestCommand.fromDynamic]: map is null');
} else {
result = RunTestCommand(
id: id,
sendScreenshots: JsonClass.parseBool(map['sendScreenshots']),
test: Test.fromDynamic(map['test']),
timestamp: timestamp,
);
}
return result;
}