setColumn method
Sets the value of a column by its name. Used in communication with the database.
Implementation
@override
void setColumn(
String columnName,
value,
) {
switch (columnName) {
case 'id':
id = value;
return;
case 'serverId':
serverId = value;
return;
case 'time':
time = value;
return;
case 'module':
module = value;
return;
case 'endpoint':
endpoint = value;
return;
case 'method':
method = value;
return;
case 'duration':
duration = value;
return;
case 'numQueries':
numQueries = value;
return;
case 'slow':
slow = value;
return;
case 'error':
error = value;
return;
case 'stackTrace':
stackTrace = value;
return;
case 'authenticatedUserId':
authenticatedUserId = value;
return;
case 'isOpen':
isOpen = value;
return;
case 'touched':
touched = value;
return;
default:
throw UnimplementedError();
}
}