toJson method

String toJson()

Converts the current class to JSON

Implementation

String toJson() => jsonEncode(
      toMap(),
      toEncodable: (nonEncodable) => nonEncodable.runtimeType.toString(),
    );