* Extracts a value serialized by Field.serializeValue and returns it. * @param {mixed} data Serialized data * @return {mixed} Extracted value
(data)
| 150 | * @return {mixed} Extracted value |
| 151 | */ |
| 152 | extractValue (data) { |
| 153 | if (typeof data !== 'string') { |
| 154 | throw new Error( |
| 155 | `Value of field '${this.getName()}' is expected to be a valid ` + |
| 156 | 'base64 string.') |
| 157 | } |
| 158 | return ByteEncoder.bytesFromBase64String(data) |
| 159 | } |
| 160 | |
| 161 | /** |
| 162 | * Triggered when value has been changed inside the view. |
nothing calls this directly
no test coverage detected