toJson method
Implementation
Map<String, dynamic> toJson() => {
'name': name,
'fileName': fileName,
'bookName': bookName,
'databaseName': databaseName,
'isCustom': isCustom,
'type': type == null ? null : 'json',
};