toJson method

Map<String, dynamic> toJson()

Creates a JSON representation of this event.

Implementation

Map<String, dynamic> toJson() {
  return {
    'ID': id.toString(),
    'Type': type.index,
    'Responses': responses,
    'Extra': extra,
  };
}