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