fromJSON method
Implementation
@override
Object? fromJSON(dynamic jsonValue, DeserializationContext context) {
final format = getNumberFormat(context.jsonPropertyMeta);
return format != null && (jsonValue is String)
? getNumberFormat(context.jsonPropertyMeta)!.parse(jsonValue)
: (jsonValue is String)
? num.tryParse(jsonValue) ?? jsonValue
: jsonValue;
}