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'
}

Libraries

g_json