toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'timestamp': timestamp.toJson(),
    'origin': origin,
    'serviceWorkerRegistrationId': serviceWorkerRegistrationId.toJson(),
    'service': service.toJson(),
    'eventName': eventName,
    'instanceId': instanceId,
    'eventMetadata': eventMetadata.map((e) => e.toJson()).toList(),
    'storageKey': storageKey,
  };
}