toJson method Null safety

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {"p": padding, "borderRadius": borderRadius, "shadow": shadow};
}