rson 0.1.0 copy "rson: ^0.1.0" to clipboard
rson: ^0.1.0 copied to clipboard

discontinued

A Dart serialization/deserialization library to convert Dart Objects into JSON and back.

example/rson_example.dart

import 'package:rson/rson.dart';
import 'package:rson/src/annotation/enable_rson.dart';

@Serializable()
class Entity {
  int a;
  double b;
  num c;
  String d;
  Object e;
  @Ignore()
  List<int> f;
  @SerializedName("g2")
  List<double> g;
}

@EnableRson()
class Entry {}

void main() {
  setup();
//  test();
}

void setup() {}

void test() {
  const Map<String, Object> json = {
    "a": 1,
    "b": 2.0,
    "c": 3.0,
    "d": "4.0",
    "e": 5,
  };
}
0
likes
40
pub points
0%
popularity

Publisher

unverified uploader

A Dart serialization/deserialization library to convert Dart Objects into JSON and back.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

analyzer, build, build_config, glob, mustache, source_gen

More

Packages that depend on rson