pin method Null safety

Future<bool> pin()

Saves item to simple key pair value storage

Replicates Android SDK pin process and saves object to storage


Future<bool> pin() async {
  if (objectId != null) {
    await unpin();
    final Map<String, dynamic>? objectMap = parseEncode(this, full: true);
    final String json = jsonEncode(objectMap);
    await ParseCoreData().getStore().setString(objectId!, json);
    return true;
  } else {
    return false;