toJsonForDatabase method

  1. @override
  2. @Deprecated('Will be removed in 2.0.0')
Map<String, dynamic> toJsonForDatabase()
override

Will create a serialization of with the fields that are stored in the database only.

Implementation

@override
@Deprecated('Will be removed in 2.0.0')
Map<String, dynamic> toJsonForDatabase() {
  return {
    'id': id,
    'serverId': serverId,
    'time': time,
    'module': module,
    'endpoint': endpoint,
    'method': method,
    'duration': duration,
    'numQueries': numQueries,
    'slow': slow,
    'error': error,
    'stackTrace': stackTrace,
    'authenticatedUserId': authenticatedUserId,
    'isOpen': isOpen,
    'touched': touched,
  };
}