toJson method

String toJson()

Implementation

String toJson() => "{\"value\":\"${value!.replaceAll("\n", "\\n")}\"}";