g_json 1.0.3 copy "g_json: ^1.0.3" to clipboard
g_json: ^1.0.3 copied to clipboard

outdated

g_json makes it easy to get(set will support in future) value from JSON data in dart2.

json #

json package spirit by SwiftyJSON.

Example #

import 'package:json/json.dart';

void someFunc() {

  final model = JSON.parse('{"name": "Demo", "value": 2}')

  final name = model['name'].stringValue
  // OR
  final name = model['name'].string ?? 'default_name'
}

14
likes
0
pub points
85%
popularity

Publisher

verified publisherfaraday.icu

g_json makes it easy to get(set will support in future) value from JSON data in dart2.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on g_json