0
import 'dart:convert' show JSON;

As far as I know the "show" keyword bring the only one class from library right

but I can`t find now JSON class where is it? I jumped to dart:convert and then I don`t see any on "Class JSON"

why is that?

dontknowhy
  • 2,480
  • 2
  • 23
  • 67

1 Answers1

0

As you have discovered, JSON is not a class from dart:convert. What you might want is json:

import 'dart:convert' show json;

Which is defined in the dart:convert librart in the json.dart file:

enter image description here

Lulupointu
  • 3,364
  • 1
  • 12
  • 28