getErrorCode static method
Gets the error code from an API response
@param response The API response as a map @return A MapEntry containing the error code or null if no error code
Implementation
static MapEntry<String, dynamic>? getErrorCode(Map<String, dynamic> response) {
if (response["errorCode"] == null) return null;
return MapEntry("errorCode", response["errorCode"]);
}