toJson property

String? get toJson

Returns a parsed json string of this map.

Example: {"name": "John", "age": 30}.toJson -> '{"name": "John", "age": 30}'.

Implementation

String? get toJson => jsonEncode(this);