myEncode method

dynamic myEncode(
  1. dynamic item
)

Implementation

dynamic myEncode(dynamic item) {
  if (item is DateTime) {
    //return item.toIso8601String();
    return item.toString();
  }
  return item;
}