getInt method

int getInt(
  1. String property
)

Get as int or empty if null

Implementation

int getInt(String property)
{
  return get(property)?.asInt() ?? 0;
}