toJson method

dynamic toJson()

Implementation

dynamic toJson() {
  if (asString != null) return asString;
  if (asNum != null) return asNum;
  return null;
}