bool property

JSONBool? get bool

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

Implementation

JSONBool? get bool {
  final intValue = this.int;
  if (intValue == null) return null;
  return intValue == 0 ? false : true;
}