int property

JSONInt? get int

转换为一个可能为空的int类型

Implementation

JSONInt? get int {
  if (rawValue is bool) return rawValue ? 1 : 0;
  return this.double?.toInt();
}