fromDynamic static method

CommentStep? fromDynamic(
  1. dynamic map
)

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

{
  "comment": <String>
}

See also:

  • JsonClass.parseDurationFromSeconds

Implementation

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

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

  return result;
}