fromJSON method

  1. @override
Observable<double>? fromJSON(
  1. dynamic jsonValue,
  2. DeserializationContext context
)

Implementation

@override
Observable<double>? fromJSON(dynamic jsonValue,
        DeserializationContext context) =>
    (jsonValue is String || jsonValue is double)
        ? Observable<double>(
            numberConverter.fromJSON(jsonValue, context) as double)
        : jsonValue;