toMap method

Map<String, dynamic> toMap()

Implementation

Map<String, dynamic> toMap()=>{
  "eventname":name,
  "properties":properties,
  "rawProperties": rawProperties,
  "datetime":eventTime,
  "attributes":attributes,
};