fromJson method

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

Implementation

@override
double? fromJson(Object? json) => json == null
    ? null
    : json is num
        ? json.toDouble()
        : (json is String ? double.tryParse(json) : json as double?);