getCertification method

Future<CertificationModel> getCertification(
  1. String certificationId
)

Implementation

Future<CertificationModel> getCertification(String certificationId) async {
  final response = await _client
      .from('certifications')
      .select('*, learning_paths(name), domains(name)')
      .eq('id', certificationId)
      .single();
  return CertificationModel.fromJson(response);
}