Skip to content

cyberpwnn/dart_jpatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'

About

Patch json for firebase update calls

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages