toJson method
Convert to JSON.
Implementation
Map<String, dynamic> toJson() => {
if (deviceId != null) 'deviceId': deviceId,
if (actorId != null) 'actorId': actorId,
if (type != null) 'type': type!.name,
if (from != null) 'from': from!.toIso8601String(),
if (to != null) 'to': to!.toIso8601String(),
if (limit != null) 'limit': limit,
if (offset != null) 'offset': offset,
};