fetch method

Future<void> fetch()

フィールドデータを取得する 取得したデータは自分自身にセットする

Implementation

Future<void> fetch() async {
  if (!_fields.containsKey('objectId')) {
    throw Exception('ObjectId is required.');
  }
  NCMBRequest r = new NCMBRequest();
  Map response = await r.exec('GET', _name, objectId: get('objectId'));
  sets(response);
}