toMap method

Map toMap()

Implementation

Map toMap() {
  return {"type": type, "data": getData()};
}