Serializes to the map format expected by the native layers.
Map<String, double> toMap() => { 'left': left, 'top': top, 'right': right, 'bottom': bottom, };