myEncode method Null safety
- dynamic item
Implementation
dynamic myEncode(dynamic item) {
if (item is DateTime) {
return item.toIso8601String();
}
if (item is NCMBAcl ||
item is NCMBGeoPoint ||
item is NCMBObject ||
item is NCMBRelation) {
return item.toJson();
}
return item;
}