toJson method

Map toJson()

Implementation

Map toJson() {
  return {
    'type': type.name,
  };
}