loadModel method
The project's publish model.
Implementation
@override
Future<PublishModel> loadModel(PublishSource source) async {
final t = await _target(source);
final DocumentSnapshot<Map<String, dynamic>> snapshot;
try {
snapshot = await firestore.doc(t.source.modelPath(t.projectId)).get();
} catch (e) {
throw PublishLoadException('Could not read ${t.source.modelPath(t.projectId)}', e);
}
return _model(snapshot, t.projectId, t.source);
}