decode static method
Deserialize a json compatible object into a NapaWidget or null.
Implementation
static NapaPositioned? decode(dynamic data) {
if (data == null) {
return null;
}
return NapaPositioned(
left: data['left'],
top: data['top'],
right: data['right'],
bottom: data['bottom'],
width: data['width'],
height: data['height'],
child: NapaWidget.decode(data['child'])!,
);
}