convertJsonValue method

  1. @override
dynamic convertJsonValue(
  1. dynamic jsonValue
)
override

Implementation

@override
dynamic convertJsonValue(dynamic jsonValue) {
  if (jsonValue is int) return jsonValue.toDouble();
  if (jsonValue is String) return double.parse(jsonValue);
  return jsonValue as double;
}