JsonDiffer constructor
Constructs a new JsonDiffer using leftString
and rightString
, two
JSON objects represented as Dart strings.
If the two JSON objects that need to be diffed are only available as Dart Maps, you can use the dart:convert library to encode each Map into a JSON String.
Implementation
JsonDiffer(
String leftString,
String rightString,
) : leftJson = jsonDecode(leftString) as Object,
rightJson = jsonDecode(rightString) as Object;