encodesToJson function

Matcher encodesToJson(
  1. dynamic object,
  2. [int limit = 100]
)

Matches if the value json-encodes to object

Implementation

Matcher encodesToJson(object, [int limit = 100]) => ProcessingMatcher(
    equals(object, limit), (v) => json.decode(json.encode(v)));