fromDynamic static method

JsonInputErrorBuilder? fromDynamic(
  1. dynamic map, {
  2. JsonWidgetRegistry? registry,
})

Builds the builder from a Map-like dynamic structure. This expects the JSON format to be of the following structure:

{
  "text": <String>
}

Implementation

static JsonInputErrorBuilder? fromDynamic(
  dynamic map, {
  JsonWidgetRegistry? registry,
}) {
  JsonInputErrorBuilder? result;

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

  return result;
}