double property

JSONDouble? get double

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

Implementation

JSONDouble? get double {
  if (rawValue is bool) return rawValue ? 1 : 0;
  return JSONDouble.tryParse(rawValue.toString());
}