valueAsInt<T extends int?> method
Implementation
T valueAsInt<T extends int?>(K key,
{bool allowHex = false, bool allowDouble = false}) {
final value = _checkItem<T>(key);
if (value == null) return value as T;
return JsonParser.valueAsInt<T>(value,
allowDouble: allowDouble, allowHex: allowHex);
}