toRaw method

Implementation

raw.VectorTile_Value toRaw() {
  switch (type) {
    case ValueType.string:
      return raw.VectorTile_Value(stringValue: value as String);
    case ValueType.float:
      return raw.VectorTile_Value(floatValue: value as double);
    case ValueType.double:
      return raw.VectorTile_Value(doubleValue: value as double);
    case ValueType.int:
      return raw.VectorTile_Value(intValue: value as Int64);
    case ValueType.uint:
      return raw.VectorTile_Value(uintValue: value as Int64);
    case ValueType.sint:
      return raw.VectorTile_Value(sintValue: value as Int64);
    case ValueType.bool:
      return raw.VectorTile_Value(boolValue: value as bool);
  }
}