stringify method

String? stringify()

Converts the JSON object to a string returning null if it cannot.

Implementation

String? stringify() {
  try {
    return jsonEncode(this);
  } catch (ex) {
    return null;
  }
}