fromDynamic static method

SetGlobalVariableStep? fromDynamic(
  1. dynamic map
)

Creates an instance from a JSON-like map structure. This expects the following format:

{
  "type": <String>,
  "value": <String>
  "variableName": <String>,
}

Implementation

static SetGlobalVariableStep? fromDynamic(dynamic map) {
  SetGlobalVariableStep? result;

  if (map != null) {
    result = SetGlobalVariableStep(
      type: map['type'] ?? 'String',
      value: map['value']?.toString(),
      variableName: map['variableName'],
    );
  }

  return result;
}