toJson method

Map toJson()

Implementation

Map toJson(){
  Map _result = {};

  if (width != null) _result.addAll({"width": width});
  if (height != null) _result.addAll({"height": height});

  return _result;
}