I receive json from api with string array. Then I set it to local variable with type List.
if (json['x'] is List) {
List<String> x = json['x'];
print(x);
}
When I run application, Chrome show me a warning: "Ignoring cast fail from JSArray to List"
What should I do with that?
- Angular 5.0.0-alpha+6
- Chrome 63.0.3239.132
- Dart VM version: 2.0.0-dev.32.0