map property

JSONObject? get map

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

Implementation

JSONObject? get map {
  if (rawValue is String) {
    return JSON(jsonDecode(rawValue)).map;
  }
  if (rawValue is! Map) return null;
  return rawValue;
}