setColumn method

  1. @override
void setColumn(
  1. String columnName,
  2. dynamic value
)
override

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 'sessionLogId':
      sessionLogId = value;
      return;
    case 'messageId':
      messageId = value;
      return;
    case 'reference':
      reference = value;
      return;
    case 'serverId':
      serverId = value;
      return;
    case 'time':
      time = value;
      return;
    case 'logLevel':
      logLevel = value;
      return;
    case 'message':
      message = value;
      return;
    case 'error':
      error = value;
      return;
    case 'stackTrace':
      stackTrace = value;
      return;
    case 'order':
      order = value;
      return;
    default:
      throw UnimplementedError();
  }
}