toJson method

Map toJson()

Implementation

Map toJson() {
  Map _result = {};

  if (bottom != null) _result.addAll({"bottom": bottom});
  if (top != null) _result.addAll({"top": top});
  if (left != null) _result.addAll({"left": left});
  if (right != null) _result.addAll({"right": right});

  return _result;
}