toJson method

Map toJson()

Implementation

Map toJson() {
  Map _result = {};

  if (backgroundColor != null)
    _result.addAll({"backgroundColor": backgroundColor});
  if (crop != null) _result.addAll({"crop": crop!.toJson()});

  return _result;
}