decode static method
Deserialize a json compatible object into a NapaWidget or null.
Implementation
static NapaAnimatedPadding? decode(dynamic data) {
if (data == null) return null;
return NapaAnimatedPadding(
padding: decodeEdgeInsetsGeometry(data['padding'])!,
duration: decodeDuration(data['duration']),
curve: decodeCurve(data['curve']),
child: NapaWidget.decode(data['child']),
);
}