Encodes a value of type T to the storage type TStore.
T
TStore
@override double encode(num value) => value.toDouble();