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.parseDouble(map['height']),
width: JsonClass.parseDouble(map['width']),
);
}
return result;
}