toJson method

Map<String, dynamic> toJson()

Allows you to serialize object.

Implementation

Map<String, dynamic> toJson() =>
    {"bottom": bottom, "top": top, "left": left, "right": right}.clearNulls();