getApiByKey method

ApiDetails? getApiByKey(
  1. String key
)

Implementation

ApiDetails? getApiByKey(String key) {
  return apiDetails.firstWhere((api) => api.key == key);
}