saveAll method

Future<bool> saveAll(
  1. Map<String, dynamic> publicationRelease
)

Implementation

Future<bool> saveAll(Map<String, dynamic> publicationRelease) async {
  Map<String, dynamic> customerPlace = publicationRelease['customer_place'];
  await deleteAll();
  await _storage.set("publication_released_uuid", publicationRelease['publication_released_uuid']);
  await _storage.setAll("uuid", customerPlace["contents"], Tables.contents);
  await _storage.setAll("iso_code", customerPlace["languages"], Tables.languages);
  await _storage.setAll("uuid", customerPlace["tours"], Tables.tours);
  await _storage.setAll("uuid", customerPlace["maps"], Tables.maps);
  return true;
}