toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.eventId != null) {
    json[r'eventId'] = this.eventId;
  } else {
    json[r'eventId'] = null;
  }
  if (this.eventType != null) {
    json[r'eventType'] = this.eventType;
  } else {
    json[r'eventType'] = null;
  }
  if (this.timestamp != null) {
    json[r'timestamp'] = this.timestamp;
  } else {
    json[r'timestamp'] = null;
  }
  if (this.data != null) {
    json[r'data'] = this.data;
  } else {
    json[r'data'] = null;
  }
  return json;
}