textToJson static method

dynamic textToJson(
  1. String? ptext
)

Implementation

static textToJson(String? ptext) {
  if (ptext == null) {
    return null;
  } else if (ptext.isEmpty) {
    return null;
  } else {
    return ptext;
  }
}