saveAudiobook method

Future<void> saveAudiobook(
  1. AudioBook audiobook
)

Implementation

Future<void> saveAudiobook(AudioBook audiobook) async {
  try {
    await pb.collection('audiobooks').create(body: audiobook.toJson());
  } catch (e) {
    // print('Error saving audiobook: [${audiobook.title}] :$e');
  }
}