fromJson method

  1. @override
double fromJson(
  1. Object json
)

Implementation

@override
double fromJson(Object json) => switch (json) {
      int() => json.toDouble(),
      double() => json,
      String() => double.tryParse(json) ?? 0.0,
      Object() => json as double,
    };