toJson method
Implementation
Map<String, dynamic> toJson() {
return {
if (top != null) 'top': top,
if (topMax != null) 'topMax': topMax,
if (left != null) 'left': left,
if (leftMax != null) 'leftMax': leftMax,
if (bottom != null) 'bottom': bottom,
if (bottomMax != null) 'bottomMax': bottomMax,
if (right != null) 'right': right,
if (rightMax != null) 'rightMax': rightMax,
};
}