fromJson static method

JsonValueNumber? fromJson(
  1. Map<String, dynamic>? json
)
override

Implementation

static JsonValueNumber? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return JsonValueNumber(
    value: (json['value'] as num?)?.toDouble() ?? 0.0,
  );
}