decode static method

NapaSizedOverflowBox? decode(
  1. dynamic data
)
override

Deserialize a json compatible object into a NapaWidget or null.

Implementation

static NapaSizedOverflowBox? decode(dynamic data) {
  if (data == null) {
    return null;
  }

  return NapaSizedOverflowBox(
    alignment: decodeAlignmentGeometry(data['alignment'])!,
    size: decodeSize(data['size'])!,
    child: NapaWidget.decode(data['child']),
  );
}