fromPin method

Future fromPin(
  1. String objectId
)

Get item from value storage

Implementation

Future<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;
}