toJson method Null safety

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  return {
    "p": p,
    "pt": pt,
    "pr": pr,
    "pb": pb,
    "pl": pl,
    "px": px,
    "py": py,
    "m": m,
    "mt": mt,
    "mr": mr,
    "mb": mb,
    "ml": ml,
    "mx": mx,
    "my": my
  };
}