toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (batteryLevel != null) 'batteryLevel': batteryLevel!,
  if (createTime != null) 'createTime': createTime!,
  if (eventType != null) 'eventType': eventType!,
};