decode static method

NapaPadding? decode(
  1. dynamic data
)
override

Deserialize a json compatible object into a NapaWidget or null.

Implementation

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

  return NapaPadding(
    padding: decodeEdgeInsetsGeometry(data['padding'])!,
    child: NapaWidget.decode(data['child']),
  );
}