toJson abstract method
The JSON value as a fresh, mutable copy: maps and growable lists (at every depth), numbers
(num as int or double per the number rules), strings, booleans or null. With
exportFormat, priorities appear as .priority and leaves with a priority as
{'.value': v, '.priority': p} (the put wire form; numbers as stored).
Implementation
Object? toJson({bool exportFormat = false});