getContactById method

Future<Contact> getContactById(
  1. String id
)

Implementation

Future<Contact> getContactById(String id) async {
  var res = await dio.get<Map>("/crm/contacts/$id");

  return Contact.fromJson(res.data!["contact"]);
}