fromDynamic static method
Creates an instance from a JSON-like map structure. This expects the following format:
{
"goldenCompatible": <bool>,
"imageId": <String>
}
Implementation
static ScreenshotStep? fromDynamic(dynamic map) {
ScreenshotStep? result;
if (map != null) {
result = ScreenshotStep(
goldenCompatible: map['goldenCompatible'] == null
? true
: JsonClass.parseBool(map['goldenCompatible']),
imageId: map['imageId'],
);
}
return result;
}