fromDynamic static method

ExpectFailureStep? fromDynamic(
  1. dynamic map
)

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

{
  "step": <TestStep>
}

See also:

  • TestStep.fromDynamic

Implementation

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

  if (map != null) {
    result = ExpectFailureStep(
      step: map['step'],
    );
  }

  return result;
}