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