toJson method

Map toJson()

Implementation

Map toJson() {
  return {
    'type': type,
    'value': value,
    'id': id,
  };
}