decodeDouble method
Decodes the data for the given key or id as a double value.
Implementation
@override
double decodeDouble(String key, {int? id}) {
try {
return (_value[key] as num).toDouble();
} on TypeError {
throw CodableException.wrap(
CodableException.unexpectedType(expected: 'double', actual: '${_value[key].runtimeType}', data: _value[key]),
method: 'decode',
hint: '["$key"]',
);
}
}