myEncode method
dynamic
myEncode(
- dynamic item
文字列化する際に利用するエンコード関数
Implementation
dynamic myEncode(dynamic item) {
if (item is DateTime) {
return item.toUtc().toIso8601String();
}
if (item is NCMBAcl ||
item is NCMBGeoPoint ||
item is NCMBObject ||
item is NCMBRelation) {
return item.toJson();
}
return item;
}