json_types 3.0.0+1
json_types: ^3.0.0+1 copied to clipboard
Type safe JSON serialization/deserialization for Dart with no code generation or reflection.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add json_typesWith Flutter:
$ flutter pub add json_typesThis will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):
dependencies:
json_types: ^3.0.0+1Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:json_types/json.dart';
import 'package:json_types/json_polymorphic.dart';
import 'package:json_types/keys/keys.dart';
import 'package:json_types/keys/private.dart';
import 'package:json_types/keys/public.dart';
import 'package:json_types/lists/json_list.dart';
import 'package:json_types/lists/private.dart';
import 'package:json_types/lists/public.dart';
import 'package:json_types/maps/json_map.dart';
import 'package:json_types/maps/private.dart';
import 'package:json_types/maps/public.dart';
import 'package:json_types/primitives/json_primitive.dart';
import 'package:json_types/primitives/private.dart';
import 'package:json_types/primitives/public.dart';