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.maybeParseDouble(
map['maxHeight'],
) ??
double.infinity,
maxWidth: JsonClass.maybeParseDouble(
map['maxWidth'],
) ??
double.infinity,
);
}
return result;
}