toUtf8 method

List<int> toUtf8()

Encodes the output of toJson() as a string.

Implementation

List<int> toUtf8() {
  return utf8.encode(json.encode(toJson()));
}