toJson method

String? toJson()

Implementation

String? toJson() {
  final m = toMap();
  return m != null ? json.encode(m).replaceAll('\\[repl]\\', '\\') : null;
}