decode static method

NapaPositioned? decode(
  1. dynamic data
)
override

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'])!,
  );
}