save method
データを保存する
Implementation
Future<void> save() async {
if (!_fields.containsKey('objectId')) {
NCMBRequest r = new NCMBRequest();
Map response = await r.post(_name, _fields);
sets(response);
} else {
NCMBRequest r = new NCMBRequest();
Map response = await r.put(_name, _fields['objectId'], _fields);
sets(response);
}
}