decode static method
Deserialize a json compatible object into a NapaWidget or null.
Implementation
static NapaOverflowBox? decode(dynamic data) {
if (data == null) {
return null;
}
return NapaOverflowBox(
alignment: decodeAlignmentGeometry(data['alignment'])!,
minWidth: data['minWidth']?.toDouble(),
maxWidth: data['maxWidth']?.toDouble(),
minHeight: data['minHeight']?.toDouble(),
maxHeight: data['maxHeight']?.toDouble(),
child: NapaWidget.decode(data['child']),
);
}