dart_json_mapper_flutter 2.0.1 dart_json_mapper_flutter: ^2.0.1 copied to clipboard
This is a dart-json-mapper complementary package provides support for https://github.com/flutter/flutter types in order to serialize / deserialize them from / to JSON.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add dart_json_mapper_flutter
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
dart_json_mapper_flutter: ^2.0.1
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:dart_json_mapper_flutter/dart_json_mapper_flutter.dart';