jpatch 1.0.1 copy "jpatch: ^1.0.1" to clipboard
jpatch: ^1.0.1 copied to clipboard

Patch json for firebase update calls

Patch json for firebase update calls

Features #

  • Patching
  • Diffing

Usage #

import 'package:json_patch/json_patch.dart';

var from = {
  "key": "value",
  "key2": {
    "key3": "value3"
  }
};

var into = {
  "key": "anotherValue",
  "key2": {
    "key3": "value3"
  }
};

var patch = from.diff(into);
var updated = from.patched(patch); // returns same contents as 'to'
0
likes
130
pub points
5%
popularity

Publisher

verified publisherarcane.art

Patch json for firebase update calls

Repository (GitHub)
View/report issues

Documentation

API reference

License

GPL-3.0 (LICENSE)

Dependencies

flutter

More

Packages that depend on jpatch