fromPin method Null safety

Future fromPin(
  1. String objectId
)

Saves item to simple key pair value storage

Replicates Android SDK pin process and saves object to storage

Implementation

dynamic fromPin(String objectId) async {
  final CoreStore coreStore = ParseCoreData().getStore();
  final String? itemFromStore = await coreStore.getString(objectId);

  if (itemFromStore != null) {
    return fromJson(json.decode(itemFromStore));
  }
  return null;
}