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