fromJson static method
Implementation
static ColumnType fromJson(int index) {
switch (index) {
case 0:
return text;
case 1:
return boolean;
case 2:
return integer;
case 3:
return doublePrecision;
case 4:
return timestampWithoutTimeZone;
case 5:
return bytea;
case 6:
return bigint;
case 7:
return uuid;
case 8:
return json;
case 9:
return unknown;
default:
throw ArgumentError(
'Value "$index" cannot be converted to "ColumnType"');
}
}