encode static method

String encode(
  1. Object val, {
  2. bool pretty = false,
})

Implementation

static String encode(Object val, {bool pretty = false}) {
  return instance.encodeJson(val, pretty: pretty);
}