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