deeplyEncode method

Map<String, dynamic> deeplyEncode()

will encode the data back into the exact same format as sent here from mattermost.

Implementation

Map<String, dynamic> deeplyEncode() {
  var ret = toJson();
  for (var deKey in deeplyEncoded) {
    if (ret['data']![deKey] != null) {
      ret['data']![deKey] = json.encode(data[deKey]);
    }
  }
  return ret;
}