toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final attributes = this.attributes;
  final behavior = this.behavior;
  final demographic = this.demographic;
  final location = this.location;
  final metrics = this.metrics;
  final userAttributes = this.userAttributes;
  return {
    if (attributes != null) 'Attributes': attributes,
    if (behavior != null) 'Behavior': behavior,
    if (demographic != null) 'Demographic': demographic,
    if (location != null) 'Location': location,
    if (metrics != null) 'Metrics': metrics,
    if (userAttributes != null) 'UserAttributes': userAttributes,
  };
}