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;
}