toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final _json = <String, dynamic>{};
  if (clientId != null) {
    _json[r'clientId'] = clientId;
  }
  _json[r'time'] = time;
  _json[r'type'] = type;
  if (userId != null) {
    _json[r'userId'] = userId;
  }
  if (sessionId != null) {
    _json[r'sessionId'] = sessionId;
  }
  if (ipAddress != null) {
    _json[r'ipAddress'] = ipAddress;
  }
  if (details != null) {
    _json[r'details'] = details;
  }
  return _json;
}