toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final attributes = this.attributes;
  final eventType = this.eventType;
  final metrics = this.metrics;
  return {
    if (attributes != null) 'Attributes': attributes,
    if (eventType != null) 'EventType': eventType,
    if (metrics != null) 'Metrics': metrics,
  };
}