toMapJs method

String toMapJs()

Implementation

String toMapJs(){
  var map = '{';
  map += '"title": "$title"';
  if(description != null) map += ', "description": "$description"';
  if(hexColor != null) map += ', "hexColor": "$hexColor"';
  map += '}';

  return map;
}