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 'serverId':
      serverId = value;
      return;
    case 'timestamp':
      timestamp = value;
      return;
    case 'active':
      active = value;
      return;
    case 'closing':
      closing = value;
      return;
    case 'idle':
      idle = value;
      return;
    case 'granularity':
      granularity = value;
      return;
    default:
      throw UnimplementedError();
  }
}