fromDynamic static method
Builds the builder from a Map-like dynamic structure. This expects the JSON format to be of the following structure:
{
"height": "<double>",
"width": "<double>"
}
Implementation
static JsonSizedBoxBuilder? fromDynamic(
dynamic map, {
JsonWidgetRegistry? registry,
}) {
JsonSizedBoxBuilder? result;
if (map != null) {
result = JsonSizedBoxBuilder(
height: JsonClass.maybeParseDouble(map['height']),
width: JsonClass.maybeParseDouble(map['width']),
);
}
return result;
}