toJson method
Implementation
Map toJson() {
Map _result = {};
if (type != null) _result.addAll({"type": type});
if (size != null) _result.addAll({"size": size!.toJson()});
if (padColor != null) _result.addAll({"padColor": padColor});
if (returnOriginalRect != null)
_result.addAll({"returnOriginalRect": returnOriginalRect});
return _result;
}