toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (activity != null) 'activity': activity!,
      if (dataset != null) 'dataset': dataset!,
      if (endTimeMillis != null) 'endTimeMillis': endTimeMillis!,
      if (session != null) 'session': session!,
      if (startTimeMillis != null) 'startTimeMillis': startTimeMillis!,
      if (type != null) 'type': type!,
    };