AssertableJson constructor
AssertableJson(
- dynamic jsonData
Constructs an AssertableJson instance with the provided jsonData.
If jsonData is null, an empty JSON object {} will be used instead.
Accepts either a JSON object {} or array [] as valid input.
Implementation
AssertableJson(dynamic jsonData) : json = jsonData ?? {};