fromDynamic static method
Creates an instance from a JSON-like map structure. This expects the following format:
{
"type": <String>,
"value": <String>
"variableName": <String>,
}
Implementation
static SetVariableStep? fromDynamic(dynamic map) {
SetVariableStep? result;
if (map != null) {
result = SetVariableStep(
type: map['type'] ?? 'String',
value: map['value']?.toString(),
/// Accept either "variableName" or "key" for backward compatibility with 1.1.0
variableName: map['variableName'] ?? map['key'],
);
}
return result;
}