Map<String, Object?> toJson() => { if (left != null) 'left': left, if (top != null) 'top': top, if (right != null) 'right': right, if (bottom != null) 'bottom': bottom, };