toJsonForDatabase method

  1. @override
Map<String, dynamic> toJsonForDatabase()
override

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

Implementation

@override
Map<String, dynamic> toJsonForDatabase() {
  return {
    'id': id,
    'serverId': serverId,
    'sessionLogId': sessionLogId,
    'messageId': messageId,
    'query': query,
    'duration': duration,
    'numRows': numRows,
    'error': error,
    'stackTrace': stackTrace,
    'slow': slow,
    'order': order,
  };
}