in packages/sdk/src/Value.ts [200:217]
writeValue(value: Value) {
// eslint-disable-next-line default-case
switch (getType(value)) {
case 'string':
return this.writeString(value as string);
case 'number':
return this.writeNumber(value as number);
case 'boolean':
return this.writeBoolean(value as boolean);
case 'Struct':
return this.writeStruct(value as Struct);
case 'List':
return this.writeList(value as List);
case 'undefined':
// ignore
break;
}
}