toJson method

Map toJson()

Implementation

Map toJson() {
  Map _result = {};

  if (name != null) _result.addAll({"name": name});
  if (style != null) _result.addAll({"style": style});
  if (size != null) _result.addAll({"size": size});

  return _result;
}