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