gsonEncode function Null safety

String gsonEncode(
  1. dynamic obj
)

Encode gson

gsonEncode({"hello": "world"}) // >> {hello: "world"}

Implementation

String gsonEncode(dynamic obj) {
  return gson.encode(obj);
}