Convert null value from Object to num.
null
num
num numFromJson(Object? json) => (json as num?) ?? 0;