fromDynamic static method

FailStep? fromDynamic(
  1. dynamic map
)

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

{
  "message": <String>
}

See also:

  • TestStep.fromDynamic

Implementation

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

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

  return result;
}